diff --git a/core/core-frontend/src/pages/index/main.ts b/core/core-frontend/src/pages/index/main.ts index 4faa725053..034b70b6c0 100644 --- a/core/core-frontend/src/pages/index/main.ts +++ b/core/core-frontend/src/pages/index/main.ts @@ -16,8 +16,8 @@ import WebSocketPlugin from '../../websocket' const setupAll = async () => { const app = createApp(App) installDirective(app) - await setupI18n(app) setupStore(app) + await setupI18n(app) setupRouter(app) setupElementPlus(app) setupCustomComponent(app) diff --git a/core/core-frontend/src/pages/panel/main.ts b/core/core-frontend/src/pages/panel/main.ts index 4587cdb1b8..30f5043ff7 100644 --- a/core/core-frontend/src/pages/panel/main.ts +++ b/core/core-frontend/src/pages/panel/main.ts @@ -90,11 +90,7 @@ const setupAll = async ( outerParams, suffixId }) - await setupI18n(app) setupStore(app) - setupRouter(app) - setupElementPlus(app) - setupElementPlusIcons(app) const embeddedStore = useEmbedded() embeddedStore.setType(type) embeddedStore.setBusiFlag(busiFlag) @@ -106,6 +102,10 @@ const setupAll = async ( embeddedStore.setPid(pid) embeddedStore.setResourceId(resourceId) embeddedStore.setDfId(dfId) + await setupI18n(app) + setupRouter(app) + setupElementPlus(app) + setupElementPlusIcons(app) const directive = await import('@/directive') directive.installDirective(app) const res = await import('@/store/modules/user')