fix(嵌入式): div方式打开资源树界面失败
This commit is contained in:
@@ -71,7 +71,6 @@ import { useEmbedded } from '@/store/modules/embedded'
|
||||
import { setupElementPlus, setupElementPlusIcons } from '@/plugins/element-plus'
|
||||
import { setupRouter } from '@/router/embedded'
|
||||
import { useCache } from '@/hooks/web/useCache'
|
||||
import { queryDekey } from '@/api/login'
|
||||
|
||||
const setupAll = async (
|
||||
dom: string,
|
||||
@@ -134,7 +133,8 @@ const setupAll = async (
|
||||
wsCache.set('open-backend', defaultSort['basic.defaultOpen'] ?? '0')
|
||||
wsCache.set('embeddedExportMode-backend', defaultSort['basic.embeddedExportMode'] ?? 'sync')
|
||||
if (!wsCache.get(appStore.getDekey)) {
|
||||
const res = await queryDekey()
|
||||
const loginApi = await import('@/api/login')
|
||||
const res = await loginApi.queryDekey()
|
||||
wsCache.set(appStore.getDekey, res.data)
|
||||
}
|
||||
app.mount(dom)
|
||||
|
||||
Reference in New Issue
Block a user