Commit 9cf6b1fc authored by jiaxu.yan's avatar jiaxu.yan

feat: 组件误删代码

parent 40eff0bb
......@@ -50,6 +50,17 @@ ModelDataSource.prototype = {
data: params
})
.then(function (response) {
console.log(response)
if (response.data) {
for (let key in response.data) {
self[key] = response.data[key]
}
} else {
for (let key in response.data) {
self[key] = response.data[key]
}
}
successCallback(response)
})
.catch(function (error) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment