Commit ebc17665 by 姜雷

修改请求结果处理

parent 3df7a284
......@@ -118,6 +118,10 @@ Component({
this.setData({
['dataList.' + this.data.status]: res.data,
});
} else {
this.setData({
['dataList.' + this.data.status]: [],
});
}
})
.catch(err => {
......
......@@ -108,6 +108,10 @@ Component({
this.setData({
dataList: list,
});
} else {
this.setData({
dataList: [],
});
}
})
.catch(err => {
......
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