From e941881654a324d1b6d835fb0fd2716d419482ab Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Fri, 22 Nov 2024 09:49:13 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E4=BB=AA=E8=A1=A8=E6=9D=BF):=20=E5=BD=93?= =?UTF-8?q?=E5=89=8D=E7=AA=97=E5=8F=A3=E6=89=93=E5=BC=80=E6=A8=A1=E5=BC=8F?= =?UTF-8?q?=E4=B8=8B=EF=BC=8C=E7=BC=96=E8=BE=91=E4=BB=AA=E8=A1=A8=E6=9D=BF?= =?UTF-8?q?=E5=B9=B6=E4=BF=9D=E5=AD=98=EF=BC=8C=E7=82=B9=E5=87=BB=E5=B7=A6?= =?UTF-8?q?=E4=B8=8A=E8=A7=92=E8=BF=94=E5=9B=9E=E6=8C=89=E9=92=AE=EF=BC=8C?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E8=BF=94=E5=9B=9E=E5=88=B0=E4=BB=AA=E8=A1=A8?= =?UTF-8?q?=E6=9D=BF=E5=88=97=E8=A1=A8=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/dashboard/DbToolbar.vue | 10 +++++++++- .../src/components/data-visualization/DvToolbar.vue | 10 +++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/core/core-frontend/src/components/dashboard/DbToolbar.vue b/core/core-frontend/src/components/dashboard/DbToolbar.vue index d62a0393a9..a50e549b17 100644 --- a/core/core-frontend/src/components/dashboard/DbToolbar.vue +++ b/core/core-frontend/src/components/dashboard/DbToolbar.vue @@ -224,7 +224,15 @@ const saveResource = () => { ElMessage.success(t('common.save_success')) let url = window.location.href url = url.replace(/\?opt=create/, `?resourceId=${dvInfo.value.id}`) - window.history.replaceState(null, '', url) + if (!embeddedStore.baseUrl) { + window.history.replaceState( + { + path: url + }, + '', + url + ) + } if (appData.value) { initCanvasData(dvInfo.value.id, 'dashboard', () => { diff --git a/core/core-frontend/src/components/data-visualization/DvToolbar.vue b/core/core-frontend/src/components/data-visualization/DvToolbar.vue index 0fa706ec73..09e18c7993 100644 --- a/core/core-frontend/src/components/data-visualization/DvToolbar.vue +++ b/core/core-frontend/src/components/data-visualization/DvToolbar.vue @@ -166,7 +166,15 @@ const saveResource = () => { ElMessage.success('保存成功') let url = window.location.href url = url.replace(/\?opt=create/, `?dvId=${dvInfo.value.id}`) - window.history.replaceState(null, '', url) + if (!embeddedStore.baseUrl) { + window.history.replaceState( + { + path: url + }, + '', + url + ) + } if (appData.value) { initCanvasData(dvInfo.value.id, 'dataV', () => { useEmitt().emitter.emit('refresh-dataset-selector')