diff --git a/README.md b/README.md index d5c9340..9f451fa 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,10 @@ ![Instructions.gif](https://s1.ax1x.com/2020/08/19/dQ8R3t.gif) +### v1.5.1 + +- 今日收益确认无需等待持仓数量为0的基金 + ### v1.5.0 - 退出当前插件时,停止查询 diff --git a/package.json b/package.json index 117cf33..dff1c67 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "utools-fund", - "version": "v1.5.0", + "version": "v1.5.1", "description": "自选基金助手", "main": "main.ts", "scripts": { diff --git a/src/features/fundMy.ts b/src/features/fundMy.ts index 694c2a3..625dc18 100644 --- a/src/features/fundMy.ts +++ b/src/features/fundMy.ts @@ -92,7 +92,7 @@ const fundDetailsToCbList = (dbList: DBItem[], searchWord = '') => { } else { cbList = [ { - title: `今日总收益 ${dbList.every(x => !x.data.isValuation) ? '✅' : ''}`, + title: `今日总收益 ${dbList.filter(x => x.data.holdCount > 0).every(x => !x.data.isValuation) ? '✅' : ''}`, description: `¥${sumIncome.toFixed(2)}`, icon: sumIncome >= 0 ? 'assets/img/up.png' : 'assets/img/down.png', searchWord,