Use static app context import
This commit is contained in:
@@ -10,6 +10,7 @@ import '@vben/styles/ele';
|
|||||||
import { useTitle } from '@vueuse/core';
|
import { useTitle } from '@vueuse/core';
|
||||||
|
|
||||||
import { $t, setupI18n } from '#/locales';
|
import { $t, setupI18n } from '#/locales';
|
||||||
|
import { useAppContextStore } from '#/store/app-context';
|
||||||
|
|
||||||
import { initComponentAdapter } from './adapter/component';
|
import { initComponentAdapter } from './adapter/component';
|
||||||
import { initSetupVbenForm, useVbenForm } from './adapter/form';
|
import { initSetupVbenForm, useVbenForm } from './adapter/form';
|
||||||
@@ -125,7 +126,6 @@ async function bootstrap(namespace: string) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// 初始化应用上下文(从 URL 参数中获取 appCode)
|
// 初始化应用上下文(从 URL 参数中获取 appCode)
|
||||||
const { useAppContextStore } = await import('#/store/app-context');
|
|
||||||
const appContextStore = useAppContextStore();
|
const appContextStore = useAppContextStore();
|
||||||
await appContextStore.initFromUrl();
|
await appContextStore.initFromUrl();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user