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