From e9ed094cb324cc14361e53cf710508beb017ebf1 Mon Sep 17 00:00:00 2001 From: jiangs <373297395@qq.com> Date: Mon, 12 May 2025 11:49:59 +0800 Subject: [PATCH] =?UTF-8?q?lis=E5=AD=97=E6=AE=B5=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/dict.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/store/modules/dict.js b/src/store/modules/dict.js index 27fc308..eb2e7c1 100644 --- a/src/store/modules/dict.js +++ b/src/store/modules/dict.js @@ -7,12 +7,12 @@ const useDictStore = defineStore( actions: { // 获取字典 getDict(_key) { - if (_key == null && _key == "") { + if (_key == null && _key === "") { return null; } try { for (let i = 0; i < this.dict.length; i++) { - if (this.dict[i].key == _key) { + if (this.dict[i].key === _key) { return this.dict[i].value; } } @@ -34,7 +34,7 @@ const useDictStore = defineStore( var bln = false; try { for (let i = 0; i < this.dict.length; i++) { - if (this.dict[i].key == _key) { + if (this.dict[i].key === _key) { this.dict.splice(i, 1); return true; }