We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 29015b8 commit a85285fCopy full SHA for a85285f
app/mobx/News/BuDeJieMobx.js
@@ -163,12 +163,12 @@ class BuDeJieMobx extends ConfigStore {
163
*/
164
@action.bound
165
async fetchBuDeJieData(type: RTBuDeJieType, value: string) {
166
+ this.showLoading();
167
try {
168
const buDeJieData: RTBDJResult = await loadBuDeJieData(type, value);
169
170
const { largeListData, dataSource } = await BuDeJieMobx.handleLargeListData(buDeJieData.list, type);
171
-
172
if (value === '') {
173
runInAction(() => {
174
this.dataSource = dataSource;
@@ -187,6 +187,8 @@ class BuDeJieMobx extends ConfigStore {
187
} catch (e) {
188
this.showErrorView(e.message);
189
console.log('e', e.message);
190
+ } finally {
191
+ this.hideLoading();
192
}
193
194
0 commit comments