From 97db47bb8aa504d432590d9f7ba46080c597f762 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BD=97=E5=90=9B?= <13760614423@163.com> Date: Tue, 18 Aug 2020 22:37:27 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E7=BD=91=E7=BB=9C=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++++ rollup.config.js | 10 +++++----- src/features/fundMy.ts | 4 ++-- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index f451f06..e2f7c4e 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,10 @@ ![Instructions.gif](https://img03.sogoucdn.com/app/a/100520146/4d63e4c89eb939f009344792b5f3afe8) +#### v1.3.5 + +- 移除网络失败提示 + #### v1.3.4 - 移除 encoding diff --git a/rollup.config.js b/rollup.config.js index 1f601a5..4b5e5c2 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -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; diff --git a/src/features/fundMy.ts b/src/features/fundMy.ts index 52cd1bf..f502ad8 100644 --- a/src/features/fundMy.ts +++ b/src/features/fundMy.ts @@ -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; })