Skip to content

Commit e3898df

Browse files
committed
fix: tags
1 parent 3217222 commit e3898df

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/store/modules/multiTags.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { defineStore } from "pinia";
22
import { store } from "/@/store";
3+
import { isUrl } from "/@/utils/is";
34
import { isEqual } from "lodash-unified";
45
import { storageLocal } from "/@/utils/storage";
56
import { multiType, positionType } from "./types";
@@ -54,6 +55,7 @@ export const useMultiTagsStore = defineStore({
5455
case "push":
5556
{
5657
const tagVal = value as multiType;
58+
if (isUrl(tagVal?.name)) return;
5759
const tagPath = tagVal?.path;
5860
// 判断tag是否已存在
5961
const tagHasExits = this.multiTags.some(tag => {

0 commit comments

Comments
 (0)