diff --git a/src/store/modules/tagsView.ts b/src/store/modules/tagsView.ts index ab3aaa3a..971e6a74 100644 --- a/src/store/modules/tagsView.ts +++ b/src/store/modules/tagsView.ts @@ -3,7 +3,6 @@ import { RouteLocationNormalized } from "vue-router"; export interface TagView extends Partial { title?: string; - name: string; } // setup @@ -31,7 +30,7 @@ export const useTagsViewStore = defineStore("tagsView", () => { } function addCachedView(view: TagView) { - const viewName = view.name; + const viewName = view.name as string; if (cachedViews.value.includes(viewName)) return; if (view.meta?.keepAlive) { cachedViews.value.push(viewName);