Merge pull request #10632 from dataease/pr@dev-v2_st

fix(嵌入式): 访问div嵌入页面失败
This commit is contained in:
dataeaseShu 2024-07-01 09:39:50 +08:00 committed by GitHub
commit 15f9453266
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -80,7 +80,6 @@ const setupAll = async (
resourceId: string
): Promise<App<Element>> => {
const app = createApp(AppElement, { componentName: type })
installDirective(app)
await setupI18n(app)
setupStore(app)
setupRouter(app)
@ -96,6 +95,7 @@ const setupAll = async (
embeddedStore.setPid(pid)
embeddedStore.setChartId(chartId)
embeddedStore.setResourceId(resourceId)
installDirective(app)
const res = await import('@/store/modules/user')
const userStore = res.userStore()
userStore.setUser()