We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3217222 commit e3898dfCopy full SHA for e3898df
src/store/modules/multiTags.ts
@@ -1,5 +1,6 @@
1
import { defineStore } from "pinia";
2
import { store } from "/@/store";
3
+import { isUrl } from "/@/utils/is";
4
import { isEqual } from "lodash-unified";
5
import { storageLocal } from "/@/utils/storage";
6
import { multiType, positionType } from "./types";
@@ -54,6 +55,7 @@ export const useMultiTagsStore = defineStore({
54
55
case "push":
56
{
57
const tagVal = value as multiType;
58
+ if (isUrl(tagVal?.name)) return;
59
const tagPath = tagVal?.path;
60
// 判断tag是否已存在
61
const tagHasExits = this.multiTags.some(tag => {
0 commit comments