[update] 选择用户组件搜索之后下拉不刷新

This commit is contained in:
lideqin
2023-12-07 10:22:19 +08:00
parent ffa0546b47
commit c970e543e2
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -7,7 +7,6 @@
<van-search <van-search
v-model="filters.realname" v-model="filters.realname"
show-action show-action
:clearable="true"
input-align="center" input-align="center"
label="姓名" label="姓名"
placeholder="请输入姓名" placeholder="请输入姓名"
@@ -249,6 +248,7 @@ export default {
this.hide() this.hide()
}, },
onSearch () { onSearch () {
this.ipagination.pageNo = 1
this.getListData() this.getListData()
}, },
handleLeft () { handleLeft () {
+2
View File
@@ -61,6 +61,8 @@ const ListMixin = {
this.listCount = res.result.total this.listCount = res.result.total
if (this.listData.length >= this.listCount || dataSource.length === 0) { if (this.listData.length >= this.listCount || dataSource.length === 0) {
this.listFinished = true this.listFinished = true
} else {
this.listFinished = false
} }
callback && callback() callback && callback()
} else { } else {