This commit is contained in:
zyx.net
2023-06-08 17:55:03 +08:00
parent 707dde087d
commit 8f0b40d712
2 changed files with 6 additions and 6 deletions
@@ -392,14 +392,14 @@ export default {
this.loading = true
getAction('/ota/otaBaSjList/page', query).then((res) => {
if (res.success) {
if (res.result.current > 1 && res.result.records.length == 0) {
if (res.result.list.current > 1 && res.result.list.records.length == 0) {
this.pageNo = 1
this.getList()
return
}
this.dataSource = res.result.records || []
this.dataSource = res.result.list.records || []
this.number = res.result.pjspzq
this.total = res.result.total
this.total = res.result.list.total
this.loading = false
} else {
this.loading = false
@@ -339,14 +339,14 @@ export default {
this.loading = true
getAction('/ota/otaBaCxList/page', query).then((res) => {
if (res.success) {
if (res.result.current > 1 && res.result.records.length == 0) {
if (res.result.list.current > 1 && res.result.list.records.length == 0) {
this.pageNo = 1
this.getList()
return
}
this.dataSource = res.result.records || []
this.dataSource = res.result.list.records || []
this.number = res.result.pjspzq
this.total = res.result.total
this.total = res.result.list.total
this.loading = false
} else {
this.loading = false