forked from github/dataease
Merge pull request #10632 from dataease/pr@dev-v2_st
fix(嵌入式): 访问div嵌入页面失败
This commit is contained in:
commit
15f9453266
@ -80,7 +80,6 @@ const setupAll = async (
|
|||||||
resourceId: string
|
resourceId: string
|
||||||
): Promise<App<Element>> => {
|
): Promise<App<Element>> => {
|
||||||
const app = createApp(AppElement, { componentName: type })
|
const app = createApp(AppElement, { componentName: type })
|
||||||
installDirective(app)
|
|
||||||
await setupI18n(app)
|
await setupI18n(app)
|
||||||
setupStore(app)
|
setupStore(app)
|
||||||
setupRouter(app)
|
setupRouter(app)
|
||||||
@ -96,6 +95,7 @@ const setupAll = async (
|
|||||||
embeddedStore.setPid(pid)
|
embeddedStore.setPid(pid)
|
||||||
embeddedStore.setChartId(chartId)
|
embeddedStore.setChartId(chartId)
|
||||||
embeddedStore.setResourceId(resourceId)
|
embeddedStore.setResourceId(resourceId)
|
||||||
|
installDirective(app)
|
||||||
const res = await import('@/store/modules/user')
|
const res = await import('@/store/modules/user')
|
||||||
const userStore = res.userStore()
|
const userStore = res.userStore()
|
||||||
userStore.setUser()
|
userStore.setUser()
|
||||||
|
Loading…
Reference in New Issue
Block a user