Merge pull request #8249 from dataease/pr@dev-v2@fix_iframe_embedded

fix(嵌入式): iframe嵌入式模块树无法加载
This commit is contained in:
fit2cloud-chenyw 2024-02-29 17:18:20 +08:00 committed by GitHub
commit 1e0cbb19da
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6,6 +6,8 @@ import { listDatasources } from '@/api/datasource'
import type { BusiTreeRequest, BusiTreeNode } from '@/models/tree/TreeNode'
import { pathValid } from '@/store/modules/permission'
import { useCache } from '@/hooks/web/useCache'
import { useAppStoreWithOut } from '@/store/modules/app'
const appStore = useAppStoreWithOut()
const { wsCache } = useCache()
export interface InnerInteractive {
rootManage: boolean
@ -47,7 +49,7 @@ export const interactiveStore = defineStore('interactive', {
actions: {
async setInteractive(param: BusiTreeRequest) {
const flag = busiFlagMap.findIndex(item => item === param.busiFlag)
if (!hasMenuAuth(flag) && !window.DataEaseBi) {
if (!hasMenuAuth(flag) && !window.DataEaseBi && !appStore.getIsIframe) {
const tempData: InnerInteractive = {
rootManage: false,
anyManage: false,