From a8ce480e14402e9105d913f8e6946be2f2fca802 Mon Sep 17 00:00:00 2001 From: limengnan <420004014@qq.com> Date: Wed, 25 Jun 2025 10:39:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8F=AF=E8=A7=86=E5=8C=96?= =?UTF-8?q?=E5=A4=A7=E5=B1=8F=E8=BF=94=E5=9B=9E=E8=B7=AF=E5=BE=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/data-visualization/DvToolbar.vue | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/core/core-frontend/src/components/data-visualization/DvToolbar.vue b/core/core-frontend/src/components/data-visualization/DvToolbar.vue index e56c0d9..7f05d6e 100644 --- a/core/core-frontend/src/components/data-visualization/DvToolbar.vue +++ b/core/core-frontend/src/components/data-visualization/DvToolbar.vue @@ -51,7 +51,8 @@ import { useUserStoreWithOut } from '@/store/modules/user' import TabsGroup from '@/custom-component/component-group/TabsGroup.vue' import { useI18n } from '@/hooks/web/useI18n' import { updatePublishStatus } from '@/api/visualization/dataVisualization' - +import { useRoute } from 'vue-router' +const route = useRoute() let nameEdit = ref(false) let inputName = ref('') let nameInput = ref(null) @@ -227,9 +228,10 @@ const editCanvasName = () => { } const backToMain = () => { - let url = '#/screen/index' - if (dvInfo.value.id) { - url = url + '?dvId=' + dvInfo.value.id + let url = '#/module' + const appId:any = route.query.appId + if (appId) { + url = url + '?id=' + appId } if (styleChangeTimes.value > 0) { ElMessageBox.confirm(t('visualization.change_save_tips'), {