Commit 19f4afc8 by 姜雷

Merge branch 'develop' into test

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