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

Former-commit-id: 3f294a578897134996f9e191d3780e24c460b204
This commit is contained in:
haoxr
2023-05-21 15:42:22 +08:00
parent 1f2da89ea8
commit 85e35af22d

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);