fix: 🐛 eslint 打包警告问题修复
Former-commit-id: 3f294a578897134996f9e191d3780e24c460b204
This commit is contained in:
1 parent
1f2da89ea8
commit
85e35af22d
1 file changed
+1
-2
@@ -3,7 +3,6 @@ import { RouteLocationNormalized } from "vue-router";
|
|||||||
|
|
||||||
export interface TagView extends Partial<RouteLocationNormalized> {
|
export interface TagView extends Partial<RouteLocationNormalized> {
|
||||||
title?: string;
|
title?: string;
|
||||||
name: string;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// setup
|
// setup
|
||||||
@@ -31,7 +30,7 @@ export const useTagsViewStore = defineStore("tagsView", () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function addCachedView(view: TagView) {
|
function addCachedView(view: TagView) {
|
||||||
const viewName = view.name;
|
const viewName = view.name as string;
|
||||||
if (cachedViews.value.includes(viewName)) return;
|
if (cachedViews.value.includes(viewName)) return;
|
||||||
if (view.meta?.keepAlive) {
|
if (view.meta?.keepAlive) {
|
||||||
cachedViews.value.push(viewName);
|
cachedViews.value.push(viewName);
|
||||||
|
|||||||
Reference in new issue
Block a user