Skip to content

Commit

Permalink
今日总收益计算结果优化
Browse files Browse the repository at this point in the history
  • Loading branch information
adams549659584 committed Jan 22, 2021
1 parent dfa0a09 commit e61b5a9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@

![Instructions.gif](https://s1.ax1x.com/2020/08/19/dQ8R3t.gif)

### v1.6.1

- 今日总收益计算结果优化

### v1.6.0

- 新增快捷键
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "utools-fund",
"version": "v1.6.0",
"version": "v1.6.1",
"description": "自选基金助手",
"main": "main.ts",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/features/fundMy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const fundDetailsToCbList = (dbList: DBItem<IFundEnt>[], 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 ? '' : '✅'}`,
Expand Down

0 comments on commit e61b5a9

Please sign in to comment.