Merge pull request #10945 from dataease/pr@dev-v2@fixDS
fix: 嵌入式数据导出,直接导出至本地,不走数据导出中心。
This commit is contained in:
commit
132425abd3
@ -11,7 +11,9 @@ import { innerExportDetails } from '@/api/chart'
|
|||||||
import { ElMessage } from 'element-plus-secondary'
|
import { ElMessage } from 'element-plus-secondary'
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
import { useI18n } from '@/hooks/web/useI18n'
|
||||||
import { useLinkStoreWithOut } from '@/store/modules/link'
|
import { useLinkStoreWithOut } from '@/store/modules/link'
|
||||||
|
import { useAppStoreWithOut } from '@/store/modules/app'
|
||||||
|
|
||||||
|
const appStore = useAppStoreWithOut()
|
||||||
const isDataEaseBi = computed(() => appStore.getIsDataEaseBi)
|
const isDataEaseBi = computed(() => appStore.getIsDataEaseBi)
|
||||||
|
|
||||||
const { t } = useI18n()
|
const { t } = useI18n()
|
||||||
@ -513,7 +515,7 @@ export const exportExcelDownload = (chart, callBack?) => {
|
|||||||
|
|
||||||
innerExportDetails(request)
|
innerExportDetails(request)
|
||||||
.then(res => {
|
.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 blob = new Blob([res.data], { type: 'application/vnd.ms-excel' })
|
||||||
const link = document.createElement('a')
|
const link = document.createElement('a')
|
||||||
link.style.display = 'none'
|
link.style.display = 'none'
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user