From e61b5a95cf169117dff0f33e4f69de32354d0f82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BD=97=E5=90=9B?= <13760614423@163.com> Date: Sat, 23 Jan 2021 00:17:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=8A=E6=97=A5=E6=80=BB=E6=94=B6=E7=9B=8A?= =?UTF-8?q?=E8=AE=A1=E7=AE=97=E7=BB=93=E6=9E=9C=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++++ package.json | 2 +- src/features/fundMy.ts | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d5b3cca..9dbfa3c 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,10 @@ ![Instructions.gif](https://s1.ax1x.com/2020/08/19/dQ8R3t.gif) +### v1.6.1 + +- 今日总收益计算结果优化 + ### v1.6.0 - 新增快捷键 diff --git a/package.json b/package.json index 9e1af42..a848775 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "utools-fund", - "version": "v1.6.0", + "version": "v1.6.1", "description": "自选基金助手", "main": "main.ts", "scripts": { diff --git a/src/features/fundMy.ts b/src/features/fundMy.ts index 17a03ed..05e472c 100644 --- a/src/features/fundMy.ts +++ b/src/features/fundMy.ts @@ -72,7 +72,7 @@ const fundDetailsToCbList = (dbList: DBItem[], searchWord = '') => { const fund = db.data; const rate = fund.nowJJJZ / fund.yesJJJZ - 1; const income = fund.holdCount > 0 ? rate * fund.holdCount * fund.yesJJJZ : 0; - sumIncome += income; + sumIncome += Math.round(income * 100) / 100; const cb: CallbackListItem = { fundCode: fund.id, title: `${fund.id} ${fund.name} ${fund.isValuation ? '' : '✅'}`,