From fc39464baa75a45d330428ef6cc9fde3f4b11205 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?cls=5F=E5=AE=81=E6=B3=A2=E6=9C=AC=E6=9C=BA?= <908705107@qq.com> Date: Tue, 9 Jun 2026 09:45:13 +0800 Subject: [PATCH] Use static app context import --- web/apps/web-ele/src/bootstrap.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/apps/web-ele/src/bootstrap.ts b/web/apps/web-ele/src/bootstrap.ts index 1153b6c..a9cf5d7 100644 --- a/web/apps/web-ele/src/bootstrap.ts +++ b/web/apps/web-ele/src/bootstrap.ts @@ -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();