From 112a7667052453cae181bef5e50b3292b092278f Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Fri, 20 Sep 2024 13:05:33 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=95=B0=E6=8D=AE=E5=A4=A7=E5=B1=8F?= =?UTF-8?q?=E3=80=81=E4=BB=AA=E8=A1=A8=E6=9D=BF):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E9=83=A8=E5=88=86=E4=BB=AA=E8=A1=A8=E6=9D=BF=E5=9B=BE=E8=A1=A8?= =?UTF-8?q?=E8=B7=B3=E8=BD=AC=E5=BD=93=E5=89=8D=E9=A1=B5=E9=9D=A2=E5=86=85?= =?UTF-8?q?=E9=83=A8=E9=93=BE=E6=8E=A5=E5=9C=A8=E7=A7=BB=E5=8A=A8=E7=AB=AF?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E6=89=93=E5=BC=80=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/chart/components/views/index.vue | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/core/core-frontend/src/views/chart/components/views/index.vue b/core/core-frontend/src/views/chart/components/views/index.vue index 55424c5b46..eefe17263b 100644 --- a/core/core-frontend/src/views/chart/components/views/index.vue +++ b/core/core-frontend/src/views/chart/components/views/index.vue @@ -69,8 +69,15 @@ const isIframe = computed(() => appStore.getIsIframe) const emit = defineEmits(['onPointClick']) -const { nowPanelJumpInfo, publicLinkStatus, dvInfo, curComponent, canvasStyleData, mobileInPc } = - storeToRefs(dvMainStore) +const { + nowPanelJumpInfo, + publicLinkStatus, + dvInfo, + curComponent, + canvasStyleData, + mobileInPc, + inMobile +} = storeToRefs(dvMainStore) const props = defineProps({ active: { @@ -398,11 +405,16 @@ const windowsJump = (url, jumpType, size = 'middle') => { const width = screen.width * sizeX const left = screen.width * ((1 - sizeX) / 2) const top = screen.height * ((1 - sizeY) / 2) - window.open( + newWindow = window.open( url, '_blank', `width=${width},height=${height},left=${left},top=${top},toolbar=no,scrollbars=yes,resizable=yes,location=no` ) + } else if ('_self' === jumpType) { + newWindow = window.open(url, jumpType) + if (inMobile) { + window.location.reload() + } } else { newWindow = window.open(url, jumpType) }