diff --git a/core/core-frontend/src/views/chart/components/views/components/ChartComponentG2Plot.vue b/core/core-frontend/src/views/chart/components/views/components/ChartComponentG2Plot.vue index 06806e4e05..28f2372362 100644 --- a/core/core-frontend/src/views/chart/components/views/components/ChartComponentG2Plot.vue +++ b/core/core-frontend/src/views/chart/components/views/components/ChartComponentG2Plot.vue @@ -712,9 +712,19 @@ const preparePicture = id => { }) scene.addControl(zoom) zoom.hide() - zoom.getImage().then(res => { + // 天地图 + const getTmapImage = async () => { + const res = await scene.exportPng('png') canvas2Picture(res, true) - }) + } + zoom + .getImage() + .then(res => { + canvas2Picture(res, true) + }) + .catch(() => { + getTmapImage() + }) } } const unPreparePicture = id => {