From 85e35af22d5b8688caa5c11f3bf9d7fc0c805827 Mon Sep 17 00:00:00 2001 From: haoxr <1490493387@qq.com> Date: Sun, 21 May 2023 15:42:22 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20:bug:=20eslint=20=E6=89=93=E5=8C=85?= =?UTF-8?q?=E8=AD=A6=E5=91=8A=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Former-commit-id: 3f294a578897134996f9e191d3780e24c460b204 --- src/store/modules/tagsView.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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);