Fix(寻趣味):[#1863]切换分类,或切换城市时,清空搜索框内容
This commit is contained in:
@@ -124,6 +124,7 @@ export default {
|
|||||||
if (memCityName.length) {
|
if (memCityName.length) {
|
||||||
this.cityName = memCityName
|
this.cityName = memCityName
|
||||||
uni.removeStorageSync('cityName')
|
uni.removeStorageSync('cityName')
|
||||||
|
this.name = ''
|
||||||
this.search()
|
this.search()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -150,6 +151,7 @@ export default {
|
|||||||
tapType(index) {
|
tapType(index) {
|
||||||
if (this.typeIndex === index) return
|
if (this.typeIndex === index) return
|
||||||
this.typeIndex = index
|
this.typeIndex = index
|
||||||
|
this.name = ''
|
||||||
this.search()
|
this.search()
|
||||||
},
|
},
|
||||||
search() {
|
search() {
|
||||||
|
|||||||
Reference in New Issue
Block a user