Explorar o código

fix: 兼容路由title为空的情况

xiaoxian521 %!s(int64=3) %!d(string=hai) anos
pai
achega
b6ed8b40d1
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/store/modules/multiTags.ts

+ 1 - 0
src/store/modules/multiTags.ts

@@ -47,6 +47,7 @@ export const useMultiTagsStore = defineStore({
           {
             const tagVal = value as multiType;
             if (isUrl(tagVal?.name)) return;
+            if (tagVal?.meta?.title.length === 0) return;
             const tagPath = tagVal?.path;
             // 判断tag是否已存在
             const tagHasExits = this.multiTags.some(tag => {