请求结果结构更新

This commit is contained in:
Jam committed 2022-11-04 14:06:45 +08:00
1 parent c9c16e9d26
commit bd8f8b97fa
4 files changed
+14 -14

No files matched your search

+2 -2
View File
@@ -103,7 +103,7 @@ new Vue({
*/
async refreshTableData() {
this.isTableLoading = true;
const {data: {appData: {resultData: {rows}}}} = await window.jianghuAxios({
const {rows} = (await window.jianghuAxios({
data: {
appData: {
pageId: 'workflowManagement',
@@ -111,7 +111,7 @@ new Vue({
orderBy: [{column: 'operationAt', order: 'desc'}]
}
}
});
})).data.appData.resultData;
for (const item of rows) {
item.workflowConfig = item.workflowConfig ? JSON.parse(item.workflowConfig) : null;
item.workflowForm = item.workflowForm ? JSON.parse(item.workflowForm) : [];