continue upd res until is ok

master
冯凯 2023-11-20 20:05:09 +08:00
parent 028dafaf97
commit b5e1b3b318
3 changed files with 5 additions and 4 deletions

View File

@ -175,6 +175,7 @@ export default {
return true; return true;
}, },
handleUploadSuccess(res, file) { handleUploadSuccess(res, file) {
console.log(res)
// //
if (res.code == 200) { if (res.code == 200) {
// //

View File

@ -103,8 +103,8 @@ export default {
// //
getList() { getList() {
unallocatedUserList(this.queryParams).then(res => { unallocatedUserList(this.queryParams).then(res => {
this.userList = res.rows; this.userList = res.data.rows;
this.total = res.total; this.total = res.data.total;
}); });
}, },
/** 搜索按钮操作 */ /** 搜索按钮操作 */

View File

@ -85,8 +85,8 @@ export default {
getList() { getList() {
listDbTable(this.queryParams).then(res => { listDbTable(this.queryParams).then(res => {
if (res.code === 200) { if (res.code === 200) {
this.dbTableList = res.rows; this.dbTableList = res.data.rows;
this.total = res.total; this.total = res.data.total;
} }
}); });
}, },