修复语法错误

Former-commit-id: b792f259a85060bc427414a1451d7218e8e099f7 [formerly b792f259a85060bc427414a1451d7218e8e099f7 [formerly b792f259a85060bc427414a1451d7218e8e099f7 [formerly b792f259a85060bc427414a1451d7218e8e099f7 [formerly 6a9e02c169cc62ae7f62e1f479aa2fc1eb7759b7 [formerly 7524303cc8515da2de88d785b38eae96a3cc501e]]]]]
Former-commit-id: cc0082f2dddee9629e13a66d8458132f4c1529fb
Former-commit-id: 1e88751bbe455a8ecf939f0c3745bd6005d3b549
Former-commit-id: 93b5b7cd4d80da8f81c4985e302ba317c3b8ef30 [formerly 6d5ef8bec31f4fa776f9d797f381e57722a0db10]
Former-commit-id: e4001eea6899889fe9f50194e23e320c0480dcfb
Former-commit-id: 249fd0bd5ccf93dc4a22fc0cc6951dd039151349
Former-commit-id: f35cdabda6780556b92d236ff7e8d359249203c5
Former-commit-id: 4593038573e235b2eb9032d858409e020b7ee667
Former-commit-id: 37b953c1c1657ac5582759f7e8bb63efdb8d90d0
This commit is contained in:
liyang
2018-12-15 09:40:54 +08:00
parent 7384f98e2d
commit f8cc7072aa
2 changed files with 4 additions and 3 deletions

View File

@@ -40,8 +40,7 @@ export default {
vm.resetFormData() vm.resetFormData()
vm.getFormData(id) vm.getFormData(id)
}) })
} } else {
else {
next(new Error('未指定ID')) next(new Error('未指定ID'))
} }
}, },

View File

@@ -59,7 +59,9 @@ export default {
// 请求表格数据 // 请求表格数据
getTableData () { getTableData () {
fetch() fetch()
.then(res => this.crud.data = res.list) .then(res => {
this.crud.data = res.list
})
.catch(err => console.log(err)) .catch(err => console.log(err))
}, },
// 跳转到编辑页面 // 跳转到编辑页面