xq commit:"修改了逆变器历史详情"

This commit is contained in:
2025-07-17 11:51:40 +08:00
parent f66d864eaf
commit 1a670ff812

View File

@ -43,12 +43,21 @@ export const useTagsViewStore = defineStore('tagsView', () => {
}); });
}; };
const addVisitedView = (view: RouteLocationNormalized): void => { const addVisitedView = (view: RouteLocationNormalized): void => {
console.info(view.path);
if (visitedViews.value.some((v: RouteLocationNormalized) => v.path === view.path)) return; if (visitedViews.value.some((v: RouteLocationNormalized) => v.path === view.path)) return;
visitedViews.value.push( if (view.path === '/historyDetail') {
Object.assign({}, view, { visitedViews.value.push(
title: view.meta?.title || 'no-name' Object.assign({}, view, {
}) title: '逆变器历史数据'
); })
);
} else {
visitedViews.value.push(
Object.assign({}, view, {
title: view.meta?.title || 'no-name'
})
);
}
}; };
const delView = ( const delView = (
view: RouteLocationNormalized view: RouteLocationNormalized