perf: 同步精简版代码

This commit is contained in:
xiaoxian521
2022-03-03 23:30:08 +08:00
parent 4bb8647990
commit 51fd06c6a1
24 changed files with 703 additions and 157 deletions

View File

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