fix: 🐛 eslint 打包警告问题修复

This commit is contained in:
haoxr 2023-05-21 15:42:22 +08:00
parent fce497b1d2
commit 3f294a5788
1 changed files with 1 additions and 2 deletions

View File

@ -3,7 +3,6 @@ import { RouteLocationNormalized } from "vue-router";
export interface TagView extends Partial<RouteLocationNormalized> {
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);