From d6e731d4e6b8c97707ee1a6cf455d6cc1f9e8e6f Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Sun, 13 Apr 2025 08:14:42 +0800
Subject: [PATCH] feat: 使用===个等号

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

diff --git a/src/store/modules/tags.js b/src/store/modules/tags.js
index 819c900..cd28ca7 100644
--- a/src/store/modules/tags.js
+++ b/src/store/modules/tags.js
@@ -10,10 +10,10 @@
 	},
 	mutations: {
 		ADD_TAG: (state, action) => {
-			if (typeof action.name == 'function') action.name = action.name(action.query)
+			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
+			if (state.tagList.some(ele => ele.fullPath === action.fullPath)) return
 			state.tagList.push(action)
 			setStore({ name: 'tagList', content: state.tagList })
 		},

--
Gitblit v1.9.3