refactor: ♻️ 组件 name 调整大写

Former-commit-id: e8d8f7b28d8866fc670fbf777efeb5f4256d810f
This commit is contained in:
haoxr
2023-05-21 15:15:35 +08:00
parent df7391bac0
commit 922a8bfbbd
8 changed files with 86 additions and 23 deletions

View File

@@ -1,9 +1,9 @@
import { defineStore } from "pinia";
import { ref } from "vue";
import { RouteLocationNormalized } from "vue-router";
export interface TagView extends Partial<RouteLocationNormalized> {
title?: string;
name: string;
}
// setup
@@ -31,7 +31,7 @@ export const useTagsViewStore = defineStore("tagsView", () => {
}
function addCachedView(view: TagView) {
const viewName = view.name as string;
const viewName = view.name;
if (cachedViews.value.includes(viewName)) return;
if (view.meta?.keepAlive) {
cachedViews.value.push(viewName);