【银保app】保单列表查询无数据清空页面数据

This commit is contained in:
liu.xiaofeng@ebiz-digits.com
2022-12-26 18:34:29 +08:00
parent 2b6ef875e0
commit 8a5750a203

View File

@@ -268,10 +268,10 @@ export default {
// that.filpolicyListDTOList = res.policyListDTOList
// console.log(this.policyListDTOList, 'data里的policyListDTOList')
// this.YBpolicyListAgent()
if( res.policyListDTOList.length == 0 ){
if( res.policyListDTOList && res.policyListDTOList.length == 0 ){
this.finished = true
this.loading= false
// that.filpolicyListDTOList = []
that.filpolicyListDTOList = []
}else{
that.filpolicyListDTOList = that.filpolicyListDTOList.concat(res.policyListDTOList)
that.finished = false