Skip to content

Commit

Permalink
移除网络失败提示
Browse files Browse the repository at this point in the history
  • Loading branch information
adams549659584 committed Aug 18, 2020
1 parent 04aed21 commit 97db47b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@

![Instructions.gif](https://img03.sogoucdn.com/app/a/100520146/4d63e4c89eb939f009344792b5f3afe8)

#### v1.3.5

- 移除网络失败提示

#### v1.3.4

- 移除 encoding
Expand Down
10 changes: 5 additions & 5 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ const rollupOptions = {
replace({
ENV: JSON.stringify(NODE_ENV),
}),
// NODE_ENV === 'production' && terser({
// format: {
// comments: false
// }
// }),
NODE_ENV === 'production' && terser({
format: {
comments: false
}
}),
],
};
export default rollupOptions;
4 changes: 2 additions & 2 deletions src/features/fundMy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ const getMyFundDetails = async () => {
FundDBHelper.update(db);
// console.log(JSON.stringify(db.data));
} catch (error) {
console.error(error);
utools.showNotification(`网络请求失败,请稍后再试`);
console.error(`${db.data.id} ${db.data.name} :`, error);
// utools.showNotification(`网络请求失败,请稍后再试`);
}
return db;
})
Expand Down

0 comments on commit 97db47b

Please sign in to comment.