add 新增路由跳转自定义title

This commit is contained in:
LiuHao
2023-06-18 23:47:10 +08:00
parent a46c511f1f
commit 3b3fb80231
3 changed files with 16 additions and 6 deletions

View File

@ -167,6 +167,7 @@ export const useTagsViewStore = defineStore('tagsView', () => {
const addCachedView = (view: TagView): void => {
const viewName = view.name as string;
if (!viewName) return;
if (cachedViews.value.includes(viewName)) return;
if (!view.meta?.noCache) {
cachedViews.value.push(viewName);