opt:优化前后端交互后端返回不统一问题

This commit is contained in:
zhangzq
2026-07-08 17:17:52 +08:00
parent c4b1e9d1d2
commit b2d542ed24
134 changed files with 553 additions and 636 deletions

View File

@@ -211,15 +211,15 @@ export default {
},
[CRUD.HOOK.afterToEdit]() {
crudPurchase.get(this.form.id).then(res => {
if (res && res.tableData) {
this.form.tableData = res.tableData
if (res.data && res.data.tableData) {
this.form.tableData = res.data.tableData
}
})
},
[CRUD.HOOK.afterToView]() {
crudPurchase.get(this.form.id).then(res => {
if (res && res.tableData) {
this.form.tableData = res.tableData
if (res.data && res.data.tableData) {
this.form.tableData = res.data.tableData
}
})
},