From 53457ba83c8039ed6a8a2c02583798042f3da663 Mon Sep 17 00:00:00 2001 From: LinCyJang Date: Mon, 2 Jun 2025 10:02:45 +0800 Subject: [PATCH] =?UTF-8?q?Fix=EF=BC=9A3615=20=E3=80=90=E5=95=86=E5=9F=8E?= =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E3=80=91=E5=8E=86=E5=8F=B2=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E8=AF=8D=E6=9D=A1=E6=90=9C=E7=B4=A2=E5=90=8E=E6=9C=AA?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E5=9C=A8=E6=9C=80=E5=89=8D=E6=96=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/shop/GoodSearch/index.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pages/shop/GoodSearch/index.vue b/pages/shop/GoodSearch/index.vue index b6e73d4..36eaf7c 100644 --- a/pages/shop/GoodSearch/index.vue +++ b/pages/shop/GoodSearch/index.vue @@ -252,7 +252,8 @@ export default { setHistory(word) { const index = this.historyKey.findIndex(item => item.word === word) if (index > -1) { - return + this.historyKey.splice(index, 1) + // return } this.historyKey.unshift({id: this.$global.generateMixed(10), word }) uni.setStorageSync('historyKey', JSON.stringify(this.historyKey))