Fix(寻趣味):[#1863]切换分类,或切换城市时,清空搜索框内容

This commit is contained in:
lifizer
2024-06-25 09:32:43 +08:00
parent 138abd46a2
commit b7cb860c5e
+2
View File
@@ -124,6 +124,7 @@ export default {
if (memCityName.length) {
this.cityName = memCityName
uni.removeStorageSync('cityName')
this.name = ''
this.search()
}
},
@@ -150,6 +151,7 @@ export default {
tapType(index) {
if (this.typeIndex === index) return
this.typeIndex = index
this.name = ''
this.search()
},
search() {