From 04e655ad393717e0071cc2d9c1e42b1d8c2cb508 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Wed, 12 Mar 2025 19:37:16 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E4=BB=AA=E8=A1=A8=E6=9D=BF=E3=80=81?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=A4=A7=E5=B1=8F):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=A4=A7=E5=B1=8F=E5=9B=BE=E8=A1=A8=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC=E6=97=A0=E6=B3=95=E9=80=89=E6=8B=A9tab=E9=A1=B5?= =?UTF-8?q?=E5=86=85=E7=9A=84=E8=BF=87=E6=BB=A4=E6=9D=A1=E4=BB=B6=E9=97=AE?= =?UTF-8?q?=E9=A2=98=20#15203?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/chart/components/views/index.vue | 23 +++++++++---------- 1 file changed, 11 insertions(+), 12 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 b78f653caf..f8e411fa56 100644 --- a/core/core-frontend/src/views/chart/components/views/index.vue +++ b/core/core-frontend/src/views/chart/components/views/index.vue @@ -450,6 +450,9 @@ const jumpClick = param => { if (isDataEaseBi.value) { embeddedBaseUrl = embeddedStore.baseUrl } + const jumpInfoParam = `&jumpInfoParam=${encodeURIComponent( + Base64.encode(JSON.stringify(param)) + )}` // 内部仪表板跳转 if (jumpInfo.linkType === 'inner') { if (jumpInfo.targetDvId) { @@ -485,13 +488,11 @@ const jumpClick = param => { if (publicLinkStatus.value) { // 判断是否有公共链接ID if (jumpInfo.publicJumpId) { - let url = `${embeddedBaseUrl}#/de-link/${ - jumpInfo.publicJumpId - }?fromLink=true&ignoreParams=true&jumpInfoParam=${encodeURIComponent( - Base64.encode(JSON.stringify(param)) - )}` + let url = `${embeddedBaseUrl}#/de-link/${jumpInfo.publicJumpId}?fromLink=true` if (attachParamsInfo) { - url = url + attachParamsInfo + url = url + attachParamsInfo + jumpInfoParam + } else { + url = url + '&ignoreParams=true' + attachParamsInfo + jumpInfoParam } const currentUrl = window.location.href localStorage.setItem('beforeJumpUrl', currentUrl) @@ -500,13 +501,11 @@ const jumpClick = param => { ElMessage.warning(t('visualization.public_link_tips')) } } else { - let url = `${embeddedBaseUrl}#/preview?dvId=${ - jumpInfo.targetDvId - }&fromLink=true&ignoreParams=true&jumpInfoParam=${encodeURIComponent( - Base64.encode(JSON.stringify(param)) - )}` + let url = `${embeddedBaseUrl}#/preview?dvId=${jumpInfo.targetDvId}&fromLink=true` if (attachParamsInfo) { - url = url + attachParamsInfo + url = url + attachParamsInfo + jumpInfoParam + } else { + url = url + '&ignoreParams=true' + attachParamsInfo + jumpInfoParam } const currentUrl = window.location.href localStorage.setItem('beforeJumpUrl', currentUrl)