fix: 🐛 eslint 打包警告问题修复
Former-commit-id: 3f294a578897134996f9e191d3780e24c460b204
This commit is contained in:
@@ -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