Use static app context import

This commit is contained in:
2026-06-09 09:45:13 +08:00
parent 5be257ee23
commit fc39464baa
+1 -1
View File
@@ -10,6 +10,7 @@ import '@vben/styles/ele';
import { useTitle } from '@vueuse/core';
import { $t, setupI18n } from '#/locales';
import { useAppContextStore } from '#/store/app-context';
import { initComponentAdapter } from './adapter/component';
import { initSetupVbenForm, useVbenForm } from './adapter/form';
@@ -125,7 +126,6 @@ async function bootstrap(namespace: string) {
});
// 初始化应用上下文(从 URL 参数中获取 appCode
const { useAppContextStore } = await import('#/store/app-context');
const appContextStore = useAppContextStore();
await appContextStore.initFromUrl();