From f149fca4268bbcc946dfda410e996973d70685f4 Mon Sep 17 00:00:00 2001 From: Ironsp <1522278303@qq.com> Date: Wed, 27 May 2026 15:53:27 +0800 Subject: [PATCH] =?UTF-8?q?feat=20=E8=A7=86=E9=A2=91=E4=BD=8D=E7=BD=AE?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/notice/index.vue | 65 ++++++++++++++++++++++-- src/views/equipmentList/list.vue | 2 +- src/views/fileList/list.vue | 70 +++++++++++++++++++++++--- 3 files changed, 124 insertions(+), 13 deletions(-) diff --git a/src/layout/components/notice/index.vue b/src/layout/components/notice/index.vue index c4767b9..bab0cf7 100644 --- a/src/layout/components/notice/index.vue +++ b/src/layout/components/notice/index.vue @@ -27,7 +27,6 @@ :title="dialog.title" width="500px" class="monitor-dialog" - append-to-body :before-close="handleMonitorDialogClose" fullscreen destroy-on-close @@ -50,6 +49,7 @@ import { useNoticeStore } from '@/store/modules/notice'; import { listNotice } from '@/api/system/notice'; import { initHls, destroyHls } from '@/utils/video'; +import { onBeforeRouteLeave } from 'vue-router'; const { proxy } = getCurrentInstance() as ComponentInternalInstance; @@ -179,17 +179,72 @@ onMounted(() => { console.log('消息列表:', newsList.value); }); }); + +onBeforeRouteLeave(() => { + dialog.visible = false; + monitorVideoUrl.value = ''; +});