diff --git a/src/widgets/work/Large.tsx b/src/widgets/work/Large.tsx index ed29c67..34931f2 100644 --- a/src/widgets/work/Large.tsx +++ b/src/widgets/work/Large.tsx @@ -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 : '无目标'} {store.state.beginTime < 0 ? '15:00' : formatSeconds(store.remainingTime)}