Fix:删掉输入框内容后,输入框应该直接是空白的,不要显示浮动关键词

This commit is contained in:
linxi
2025-03-03 14:21:58 +08:00
parent f36bf5ca73
commit 754713282b
+7 -6
View File
@@ -155,8 +155,8 @@ export default {
if(val) {
this.showkey = false
} else {
this.showkey = true
this.currentSearch = this.recommendKeyword[0]
// this.showkey = true
// this.currentSearch = this.recommendKeyword[0]
}
}
},
@@ -176,6 +176,7 @@ export default {
this.$yrouter.switchTab('/pages/cart')
},
showHistory() {
this.currentSearch = this.recommendKeyword[0]
if(this.showkey) return
if(this.search) {
this.showkey = false
@@ -185,10 +186,10 @@ export default {
},
hideHistory() {
if(!this.search) {
this.showkey = true
return
}
// if(!this.search) {
// this.showkey = true
// return
// }
this.showkey = false
},
change(e) {