From d75d61683046e2d637969140ab1d385ea1862557 Mon Sep 17 00:00:00 2001 From: lzp Date: Wed, 1 Apr 2026 11:45:00 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B7=AF=E7=94=B1=E5=8F=98=E5=8C=96=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E5=85=B3=E9=97=AD=E6=B7=B1=E5=BA=A6=E7=94=BB=E5=B8=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Canvas/DepthCanvas/index.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/components/Canvas/DepthCanvas/index.vue b/src/components/Canvas/DepthCanvas/index.vue index 8276ed6..768f360 100644 --- a/src/components/Canvas/DepthCanvas/index.vue +++ b/src/components/Canvas/DepthCanvas/index.vue @@ -21,7 +21,13 @@ import { getDepthCanvas, saveDepthCanvas } from '@/api/depth-canvas' import FullscreenDialog from '../components/fullscreen-dialog.vue' import depthCanvas from './depth-canvas.vue' - import { ref } from 'vue' + import { ref, watch } from 'vue' + import { useRoute } from 'vue-router' + const route = useRoute() + watch( + () => route.path, + () => dialogVisible.value && (dialogVisible.value = false) + ) const dialogVisible = ref(false) const config = ref({ canvasId: '',