forked from github/dataease
Merge pull request #5613 from dataease/pr@dev@fix_echarts_export_excel
fix(视图-Excel导出): 修复 echarts 无法导出
This commit is contained in:
commit
c6e6ad614b
@ -429,7 +429,10 @@ export function getCacheTree(treeName) {
|
||||
}
|
||||
|
||||
export function exportExcelDownload(chart, snapshot, width, height, loadingWrapper, callBack) {
|
||||
if (!chart.data?.data?.length) {
|
||||
if (chart.render === 'antv' && !chart.data?.data?.length) {
|
||||
return
|
||||
}
|
||||
if (chart.type === 'echarts' && !(chart.data?.series?.length && chart.data?.series[0].data?.length)) {
|
||||
return
|
||||
}
|
||||
const fields = JSON.parse(JSON.stringify(chart.data.fields))
|
||||
|
Loading…
Reference in New Issue
Block a user