mirror of
https://github.com/PlayEdu/frontend.git
synced 2025-12-24 02:49:51 +08:00
手机浏览跳转h5
This commit is contained in:
@@ -30,7 +30,19 @@ if (getToken()) {
|
||||
});
|
||||
});
|
||||
} else {
|
||||
RootPage = <InitPage />;
|
||||
RootPage = lazy(async () => {
|
||||
return new Promise<any>(async (resolve) => {
|
||||
try {
|
||||
let configRes: any = await system.config();
|
||||
|
||||
resolve({
|
||||
default: <InitPage configData={configRes.data} />,
|
||||
});
|
||||
} catch (e) {
|
||||
console.error("系统初始化失败", e);
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
// 懒加载
|
||||
|
||||
Reference in New Issue
Block a user