From 6115493b7059326912d1ab0187c84825c3b5ecb4 Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Mon, 1 Jul 2024 11:10:12 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=B5=8C=E5=85=A5=E5=BC=8F):=20=E8=AE=BF?= =?UTF-8?q?=E9=97=AEdiv=E5=B5=8C=E5=85=A5=E9=A1=B5=E9=9D=A2=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/pages/panel/main.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/core-frontend/src/pages/panel/main.ts b/core/core-frontend/src/pages/panel/main.ts index 47b9271243..36d556bbd1 100644 --- a/core/core-frontend/src/pages/panel/main.ts +++ b/core/core-frontend/src/pages/panel/main.ts @@ -65,7 +65,6 @@ import { setupStore } from '@/store' import { useEmbedded } from '@/store/modules/embedded' import { setupElementPlus, setupElementPlusIcons } from '@/plugins/element-plus' import { setupRouter } from '@/router/embedded' -import { installDirective } from '@/directive' const setupAll = async ( dom: string, @@ -95,7 +94,8 @@ const setupAll = async ( embeddedStore.setPid(pid) embeddedStore.setChartId(chartId) embeddedStore.setResourceId(resourceId) - installDirective(app) + const directive = await import('@/directive') + directive.installDirective(app) const res = await import('@/store/modules/user') const userStore = res.userStore() userStore.setUser()