Commit 78947ea0 by caoyanzhi

fix: 数据处理

parent 3520760c
......@@ -560,7 +560,9 @@ export default {
this.load = true;
if (res.data.errorCode === 0) {
this.load = false;
this.memberData = res.data.result.page.result.map(ele => ({
const { page } = res.data.result || {};
const result = Array.isArray(page.result) ? page.result : [];
this.memberData = result.map(ele => ({
...ele,
receiptsDate:
ele.receiptsDate != -1
......@@ -569,8 +571,8 @@ export default {
orderTime:
ele.orderTime != -1 ? formatLongTime(ele.orderTime, 1) : "" // 操作时间
}));
this.page.currentPage = res.data.result.page.currentPage;
this.page.totalCount = res.data.result.page.totalCount;
this.page.currentPage = page.currentPage;
this.page.totalCount = page.totalCount;
} else {
checkFalse(res.data.message);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment