xq feat:"完成了标签页只能同时存在五个"
This commit is contained in:
@ -18,8 +18,14 @@ export const useTagsViewStore = defineStore('tagsView', () => {
|
||||
};
|
||||
|
||||
const addView = (view: RouteLocationNormalized) => {
|
||||
addVisitedView(view);
|
||||
addCachedView(view);
|
||||
if (visitedViews.value.length >= 6) {
|
||||
delView(visitedViews.value[1]);
|
||||
addVisitedView(view);
|
||||
addCachedView(view);
|
||||
} else {
|
||||
addVisitedView(view);
|
||||
addCachedView(view);
|
||||
}
|
||||
};
|
||||
|
||||
const addIframeView = (view: RouteLocationNormalized): void => {
|
||||
|
Reference in New Issue
Block a user