fix(嵌入式): 嵌入式404

This commit is contained in:
dataeaseShu 2024-12-25 09:47:36 +08:00 committed by xuwei-fit2cloud
parent e58a9a7479
commit 4927c93275
2 changed files with 5 additions and 5 deletions

View File

@ -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)

View File

@ -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')