优化refreshTableData函数resultData写法

This commit is contained in:
yasa committed 2022-10-12 21:44:23 +08:00
1 parent 0c3ef09152
commit e1812351ed
5 files changed
+8 -9

No files matched your search

+2 -2
View File
@@ -101,7 +101,7 @@ new Vue({
*/
async refreshTableData() {
this.isTableLoading = true;
const {data: {appData: {resultData: {rows}}}} = await window.jianghuAxios({
const result = await window.jianghuAxios({
data: {
appData: {
pageId: 'taskICreateManagement',
@@ -113,7 +113,7 @@ new Vue({
}
});
this.tableDataFromBackend = rows;
this.tableDataFromBackend = result.data.appData.resultData.rows;
this.isTableLoading = false;
},