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