From 303e1166a8f4f34aabdbe87589b0eee24fc98139 Mon Sep 17 00:00:00 2001 From: expdsn <18111002318@163.com> Date: Mon, 2 Dec 2024 13:00:10 +0800 Subject: [PATCH] save --- src/widgets/work/Large.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)}