xq commit:"修改了逆变器历史详情"
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user