|
|
@@ -2,18 +2,20 @@
|
|
|
import AppConfig, { isTestEnv } from '@/common/config/AppCofig'
|
|
|
import { onError, onLaunch } from '@dcloudio/uni-app'
|
|
|
import { useAuthStore } from './store/auth'
|
|
|
+import { useAppInit } from './common/composeabe/AppInit';
|
|
|
+import { IconUtils } from './components/basic/IconUtils';
|
|
|
+import { useAppConfiguration } from './api/system/useAppConfiguration';
|
|
|
import { configTheme } from './components/theme/ThemeDefine';
|
|
|
import { getCurrentPageUrl, navTo } from './components/utils/PageAction';
|
|
|
import { RequestApiConfig, RequestApiError } from '@imengyu/imengyu-utils';
|
|
|
+import { BugReporterAbstractionUniapp } from './common/BugReporter/impl/BugReporterAbstractionUniapp';
|
|
|
import ApiCofig from './common/config/ApiCofig';
|
|
|
-import { useAppInit } from './common/composeabe/AppInit';
|
|
|
import MemoryTimeOut from './common/composeabe/MemoryTimeOut';
|
|
|
import BugReporter, { type BugDetailDeviceInfo } from './common/BugReporter';
|
|
|
-import { BugReporterAbstractionUniapp } from './common/BugReporter/impl/BugReporterAbstractionUniapp';
|
|
|
-import { IconUtils } from './components/basic/IconUtils';
|
|
|
|
|
|
const authStore = useAuthStore();
|
|
|
const { init } = useAppInit();
|
|
|
+const { loadAppConfiguration } = useAppConfiguration();
|
|
|
const redirectThrottle = new MemoryTimeOut('RedirectThrottle', 50000);
|
|
|
|
|
|
|
|
|
@@ -36,6 +38,7 @@ onLaunch(async () => {
|
|
|
}
|
|
|
|
|
|
await BugReporter.checkAndReportBug();
|
|
|
+ await loadAppConfiguration();
|
|
|
await init();
|
|
|
});
|
|
|
|