From a4c9289f3db049bc53a8bb2fd601abfe24584ec0 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Thu, 29 Feb 2024 17:17:24 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=B5=8C=E5=85=A5=E5=BC=8F):=20iframe?= =?UTF-8?q?=E5=B5=8C=E5=85=A5=E5=BC=8F=E6=A8=A1=E5=9D=97=E6=A0=91=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E5=8A=A0=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/store/modules/interactive.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/core-frontend/src/store/modules/interactive.ts b/core/core-frontend/src/store/modules/interactive.ts index c1ae8e9918..40d7392e98 100644 --- a/core/core-frontend/src/store/modules/interactive.ts +++ b/core/core-frontend/src/store/modules/interactive.ts @@ -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,