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))