From e1699c4851f6ca397cd0ad1ff63f32c737654836 Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Wed, 02 Apr 2025 19:14:54 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 src/store/modules/tags.js |   72 ++++++++++++++++++------------------
 1 files changed, 36 insertions(+), 36 deletions(-)

diff --git a/src/store/modules/tags.js b/src/store/modules/tags.js
index 1ec92a0..819c900 100644
--- a/src/store/modules/tags.js
+++ b/src/store/modules/tags.js
@@ -1,38 +1,38 @@
-import { setStore, getStore } from 'utils/store';
-import website from '@/config/website';
+import { setStore, getStore } from 'utils/store'
+import website from '@/config/website'
 
-const tagWel = website.fistPage;
+const tagWel = website.fistPage
 const navs = {
-  state: {
-    tagList: getStore({ name: 'tagList' }) || [],
-    tag: getStore({ name: 'tag' }) || {},
-    tagWel: tagWel,
-  },
-  mutations: {
-    ADD_TAG: (state, action) => {
-      if (typeof action.name == 'function') action.name = action.name(action.query);
-      state.tag = action;
-      setStore({ name: 'tag', content: state.tag });
-      if (state.tagList.some(ele => ele.fullPath == action.fullPath)) return;
-      state.tagList.push(action);
-      setStore({ name: 'tagList', content: state.tagList });
-    },
-    DEL_TAG: (state, action) => {
-      state.tagList = state.tagList.filter(item => {
-        return item.fullPath !== action.fullPath;
-      });
-      setStore({ name: 'tagList', content: state.tagList });
-    },
-    DEL_ALL_TAG: (state, tagList = []) => {
-      state.tagList = tagList;
-      setStore({ name: 'tagList', content: state.tagList });
-    },
-    DEL_TAG_OTHER: state => {
-      state.tagList = state.tagList.filter(item => {
-        return [state.tag.fullPath, website.fistPage.path].includes(item.fullPath);
-      });
-      setStore({ name: 'tagList', content: state.tagList });
-    },
-  },
-};
-export default navs;
+	state: {
+		tagList: getStore({ name: 'tagList' }) || [],
+		tag: getStore({ name: 'tag' }) || {},
+		tagWel: tagWel,
+	},
+	mutations: {
+		ADD_TAG: (state, action) => {
+			if (typeof action.name == 'function') action.name = action.name(action.query)
+			state.tag = action
+			setStore({ name: 'tag', content: state.tag })
+			if (state.tagList.some(ele => ele.fullPath == action.fullPath)) return
+			state.tagList.push(action)
+			setStore({ name: 'tagList', content: state.tagList })
+		},
+		DEL_TAG: (state, action) => {
+			state.tagList = state.tagList.filter(item => {
+				return item.fullPath !== action.fullPath
+			})
+			setStore({ name: 'tagList', content: state.tagList })
+		},
+		DEL_ALL_TAG: (state, tagList = []) => {
+			state.tagList = tagList
+			setStore({ name: 'tagList', content: state.tagList })
+		},
+		DEL_TAG_OTHER: state => {
+			state.tagList = state.tagList.filter(item => {
+				return [state.tag.fullPath, website.fistPage.path].includes(item.fullPath)
+			})
+			setStore({ name: 'tagList', content: state.tagList })
+		},
+	},
+}
+export default navs

--
Gitblit v1.9.3