适配统一接口返回值

This commit is contained in:
paulGao
2022-09-21 16:29:28 +08:00
parent a11452a430
commit a727001daf
3 changed files with 42 additions and 36 deletions

View File

@@ -254,9 +254,9 @@ export default {
this.searchForm.authFlag = 0;
getAuthGoodsListData(this.searchForm).then((res) => {
this.loading = false;
if (res.records) {
this.data = res.records;
this.total = res.total;
if (res.success) {
this.data = res.result.records;
this.total = res.result.total;
}
});
},