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

This commit is contained in:
xiaoxian521 2022-05-19 12:03:39 +08:00
parent 348916e567
commit b6ed8b40d1

View File

@ -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 => {