ae796308a637e7be874b4d8d29bba4217026c008
根因:休息倒计时完全存在浏览器内存中(runCountdown), 刷新页面后 loadTaskSession() 读取会话为 PAUSED 状态, 走 else 分支 syncDisplay(pointerPosition) 重置为工作钟, 休息状态和剩余时间全部丢失。 修复方案(纯前端): - restTimer() 将休息结束时间戳写入 localStorage - loadTaskSession() 启动时检查 localStorage, 若休息未到期则恢复 runCountdown 继续倒计时 - startTimer()/stopTimer()/endTimer() 清除休息状态 - 休息期间 UI:倒计时数字橙色、进度环金色、 按钮区替换为休息中标签(隐藏开始/暂停/残片)
LPT-FE
This template should help get you started developing with Vue 3 in Vite.
Recommended IDE Setup
VSCode + Volar (and disable Vetur).
Type Support for .vue Imports in TS
TypeScript cannot handle type information for .vue imports by default, so we replace the tsc CLI with vue-tsc for type checking. In editors, we need Volar to make the TypeScript language service aware of .vue types.
Customize configuration
See Vite Configuration Reference.
Project Setup
npm install
Compile and Hot-Reload for Development
npm run dev
Type-Check, Compile and Minify for Production
npm run build
Description
Languages
Vue
61.8%
TypeScript
37.1%
CSS
0.7%
Dockerfile
0.2%
HTML
0.2%