From c2100a0d6c01a809870e0832707bc131aba6ef26 Mon Sep 17 00:00:00 2001 From: jianneng-fit2cloud Date: Mon, 19 Jan 2026 14:44:43 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=9B=BE=E8=A1=A8):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=A4=A9=E5=9C=B0=E5=9B=BE=E5=AF=BC=E5=87=BA=E5=9B=BE=E7=89=87?= =?UTF-8?q?=EF=BC=8C=E6=97=A0=E6=B3=95=E5=AF=BC=E5=87=BA=E5=86=85=E5=AE=B9?= =?UTF-8?q?=E5=9B=BE=E5=B1=82=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/components/ChartComponentG2Plot.vue | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) 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 => {