fix: 🐛 eslint 打包警告问题修复
This commit is contained in:
parent
fce497b1d2
commit
3f294a5788
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue