From e3898df731392e747fdd8aaf943cbb01d9188daa Mon Sep 17 00:00:00 2001 From: xiaoxian521 <1923740402@qq.com> Date: Thu, 3 Mar 2022 22:50:39 +0800 Subject: [PATCH] fix: tags --- src/store/modules/multiTags.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/store/modules/multiTags.ts b/src/store/modules/multiTags.ts index 71c60abc48..406e4e0eb3 100644 --- a/src/store/modules/multiTags.ts +++ b/src/store/modules/multiTags.ts @@ -1,5 +1,6 @@ import { defineStore } from "pinia"; import { store } from "/@/store"; +import { isUrl } from "/@/utils/is"; import { isEqual } from "lodash-unified"; import { storageLocal } from "/@/utils/storage"; import { multiType, positionType } from "./types"; @@ -54,6 +55,7 @@ export const useMultiTagsStore = defineStore({ case "push": { const tagVal = value as multiType; + if (isUrl(tagVal?.name)) return; const tagPath = tagVal?.path; // 判断tag是否已存在 const tagHasExits = this.multiTags.some(tag => {