feat: 我的、设置、打印指南页面开发完成
This commit is contained in:
+8
-3
@@ -12,6 +12,7 @@ App<IAppOption>({
|
||||
globalData: {
|
||||
env: 'release',
|
||||
uuid: '',
|
||||
user: null,
|
||||
printConfig: defaultPrintConfig,
|
||||
pageConfig: undefined,
|
||||
pageConfigReady: false,
|
||||
@@ -41,9 +42,13 @@ App<IAppOption>({
|
||||
}
|
||||
|
||||
// 静默登录(不阻塞页面渲染)
|
||||
getUser().catch((err) => {
|
||||
console.error('静默登录失败', err);
|
||||
});
|
||||
getUser()
|
||||
.then((user) => {
|
||||
this.globalData.user = user;
|
||||
})
|
||||
.catch((err) => {
|
||||
console.error('静默登录失败', err);
|
||||
});
|
||||
|
||||
void this.loadPageConfig();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user