From 1a670ff8129a0532d4c28f0211a28bd2759700a7 Mon Sep 17 00:00:00 2001 From: xiongqin <3323939337@qq.com> Date: Thu, 17 Jul 2025 11:51:40 +0800 Subject: [PATCH] =?UTF-8?q?xq=20commit:"=E4=BF=AE=E6=94=B9=E4=BA=86?= =?UTF-8?q?=E9=80=86=E5=8F=98=E5=99=A8=E5=8E=86=E5=8F=B2=E8=AF=A6=E6=83=85?= =?UTF-8?q?"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/tagsView.ts | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/src/store/modules/tagsView.ts b/src/store/modules/tagsView.ts index 2200e94..6913ad9 100644 --- a/src/store/modules/tagsView.ts +++ b/src/store/modules/tagsView.ts @@ -43,12 +43,21 @@ export const useTagsViewStore = defineStore('tagsView', () => { }); }; const addVisitedView = (view: RouteLocationNormalized): void => { + console.info(view.path); if (visitedViews.value.some((v: RouteLocationNormalized) => v.path === view.path)) return; - visitedViews.value.push( - Object.assign({}, view, { - title: view.meta?.title || 'no-name' - }) - ); + if (view.path === '/historyDetail') { + visitedViews.value.push( + Object.assign({}, view, { + title: '逆变器历史数据' + }) + ); + } else { + visitedViews.value.push( + Object.assign({}, view, { + title: view.meta?.title || 'no-name' + }) + ); + } }; const delView = ( view: RouteLocationNormalized