fix: 优化小程序原生标题层级

This commit is contained in:
que01 committed 2026-09-19 10:35:43 +08:00
1 parent 990b105086
commit 63e5e3bd7b
4 files changed
+4 -3

No files matched your search

+1
View File
@@ -6,6 +6,7 @@ Page({
load() {
this.setData({ loading: true, error: '' });
Promise.all([this.request('/public/brand'), this.request('/public/services')]).then(([brand, services]) => {
wx.setNavigationBarTitle({ title: brand.name || '阿桂的家常小灶' });
this.setData({ brand, services, loading: false });
}).catch(() => this.setData({ loading: false, error: '暂时无法加载内容' }));
},