Skip to content

Commit a85285f

Browse files
committed
1. 为不得姐页面加载添加菊花
1 parent 29015b8 commit a85285f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/mobx/News/BuDeJieMobx.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,12 +163,12 @@ class BuDeJieMobx extends ConfigStore {
163163
*/
164164
@action.bound
165165
async fetchBuDeJieData(type: RTBuDeJieType, value: string) {
166+
this.showLoading();
166167
try {
167168
const buDeJieData: RTBDJResult = await loadBuDeJieData(type, value);
168169

169170
const { largeListData, dataSource } = await BuDeJieMobx.handleLargeListData(buDeJieData.list, type);
170171

171-
172172
if (value === '') {
173173
runInAction(() => {
174174
this.dataSource = dataSource;
@@ -187,6 +187,8 @@ class BuDeJieMobx extends ConfigStore {
187187
} catch (e) {
188188
this.showErrorView(e.message);
189189
console.log('e', e.message);
190+
} finally {
191+
this.hideLoading();
190192
}
191193
}
192194
}

0 commit comments

Comments
 (0)