forked from github/dataease
fix: 嵌入式数据导出,直接导出至本地,不走数据导出中心。
This commit is contained in:
parent
830a5b1464
commit
ef2d3e4f3c
@ -4,7 +4,7 @@ import { equalsAny, includesAny } from '../editor/util/StringUtils'
|
||||
import { FeatureCollection } from '@antv/l7plot/dist/esm/plots/choropleth/types'
|
||||
import { useMapStoreWithOut } from '@/store/modules/map'
|
||||
import { getGeoJson } from '@/api/map'
|
||||
import { toRaw } from 'vue'
|
||||
import { computed, toRaw } from 'vue'
|
||||
import { Options } from '@antv/g2plot/esm'
|
||||
import { PickOptions } from '@antv/g2plot/esm/core/plot'
|
||||
import { innerExportDetails } from '@/api/chart'
|
||||
@ -12,6 +12,8 @@ import { ElMessage } from 'element-plus-secondary'
|
||||
import { useI18n } from '@/hooks/web/useI18n'
|
||||
import { useLinkStoreWithOut } from '@/store/modules/link'
|
||||
|
||||
const isDataEaseBi = computed(() => appStore.getIsDataEaseBi)
|
||||
|
||||
const { t } = useI18n()
|
||||
// 同时支持将hex和rgb,转换成rgba
|
||||
export function hexColorToRGBA(hex, alpha) {
|
||||
@ -511,7 +513,7 @@ export const exportExcelDownload = (chart, callBack?) => {
|
||||
|
||||
innerExportDetails(request)
|
||||
.then(res => {
|
||||
if (linkStore.getLinkToken) {
|
||||
if (linkStore.getLinkToken || isDataEaseBi.value) {
|
||||
const blob = new Blob([res.data], { type: 'application/vnd.ms-excel' })
|
||||
const link = document.createElement('a')
|
||||
link.style.display = 'none'
|
||||
|
Loading…
Reference in New Issue
Block a user