fix(嵌入式): div方式打开资源树界面失败

This commit is contained in:
dataeaseShu
2026-08-25 10:46:19 +08:00
committed by dataeaseShu
parent a83f902f9f
commit 34db481f15

View File

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