From c1e6917ce4f9966dbdfba281a81209bb8af81378 Mon Sep 17 00:00:00 2001 From: taojinlong Date: Fri, 12 Jul 2024 18:27:09 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=20=E5=B5=8C=E5=85=A5=E5=BC=8F=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=AF=BC=E5=87=BA=EF=BC=8C=E7=9B=B4=E6=8E=A5=E5=AF=BC?= =?UTF-8?q?=E5=87=BA=E8=87=B3=E6=9C=AC=E5=9C=B0=EF=BC=8C=E4=B8=8D=E8=B5=B0?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=AF=BC=E5=87=BA=E4=B8=AD=E5=BF=83=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/views/chart/components/js/util.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/core-frontend/src/views/chart/components/js/util.ts b/core/core-frontend/src/views/chart/components/js/util.ts index 222d2eba12..a5b0418d7e 100644 --- a/core/core-frontend/src/views/chart/components/js/util.ts +++ b/core/core-frontend/src/views/chart/components/js/util.ts @@ -11,7 +11,9 @@ import { innerExportDetails } from '@/api/chart' import { ElMessage } from 'element-plus-secondary' import { useI18n } from '@/hooks/web/useI18n' import { useLinkStoreWithOut } from '@/store/modules/link' +import { useAppStoreWithOut } from '@/store/modules/app' +const appStore = useAppStoreWithOut() const isDataEaseBi = computed(() => appStore.getIsDataEaseBi) const { t } = useI18n() @@ -513,7 +515,7 @@ export const exportExcelDownload = (chart, callBack?) => { innerExportDetails(request) .then(res => { - if (linkStore.getLinkToken || isDataEaseBi.value) { + if (linkStore.getLinkToken || isDataEaseBi.value || appStore.getIsIframe) { const blob = new Blob([res.data], { type: 'application/vnd.ms-excel' }) const link = document.createElement('a') link.style.display = 'none'