opt:优化前后端交互后端返回不统一问题
This commit is contained in:
@@ -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
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user