Fix(寻趣味):[#1863]切换分类,或切换城市时,清空搜索框内容
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user