mirror of
https://github.com/PlayEdu/h5.git
synced 2025-12-25 18:49:51 +08:00
自动跳转pc
This commit is contained in:
@@ -32,7 +32,18 @@ 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);
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
const routes: RouteObject[] = [
|
||||
|
||||
Reference in New Issue
Block a user