fix: 优化小程序原生标题层级
This commit is contained in:
1 parent
990b105086
commit
63e5e3bd7b
4 files changed
+4
-3
No files matched your search
@@ -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: '暂时无法加载内容' }));
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user