This commit is contained in:
expdsn 2024-12-02 13:00:10 +08:00
parent 7b0e992c98
commit 303e1166a8
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ export default defineComponent(() => {
'w-full bg-white/20 text-center rounded text-[14px] overflow-hidden text-ellipsis whitespace-nowrap'
}
>
{store.state.list ? store.state.list.filter((val) => !val.isCompleted).pop()?.title : '无目标'}
{store.state.list.length !== 0 ? store.state.list.filter((val) => !val.isCompleted).pop()?.title : '无目标'}
</div>
<span class={'text-[42px] mb-1'}>
{store.state.beginTime < 0 ? '15:00' : formatSeconds(store.remainingTime)}