diff --git a/src/store/modules/tagsView.ts b/src/store/modules/tagsView.ts index 790a14a..3456b38 100644 --- a/src/store/modules/tagsView.ts +++ b/src/store/modules/tagsView.ts @@ -123,7 +123,7 @@ export const useTagsViewStore = defineStore('tagsView', () => { }); }; - const updateVisitedView = (view: TagView): void => { + const updateVisitedView = (view: TagView | RouteLocationNormalized): void => { for (let v of visitedViews.value) { if (v.path === view.path) { v = Object.assign(v, view); @@ -170,7 +170,7 @@ export const useTagsViewStore = defineStore('tagsView', () => { }); }; - const addCachedView = (view: TagView): void => { + const addCachedView = (view: TagView | RouteLocationNormalized): void => { const viewName = view.name as string; if (!viewName) return; if (cachedViews.value.includes(viewName)) return;