cat-shark ae796308a6 fix(学习会话):休息倒计时刷新后丢失
根因:休息倒计时完全存在浏览器内存中(runCountdown),
刷新页面后 loadTaskSession() 读取会话为 PAUSED 状态,
走 else 分支 syncDisplay(pointerPosition) 重置为工作钟,
休息状态和剩余时间全部丢失。

修复方案(纯前端):
- restTimer() 将休息结束时间戳写入 localStorage
- loadTaskSession() 启动时检查 localStorage,
  若休息未到期则恢复 runCountdown 继续倒计时
- startTimer()/stopTimer()/endTimer() 清除休息状态
- 休息期间 UI:倒计时数字橙色、进度环金色、
  按钮区替换为休息中标签(隐藏开始/暂停/残片)
2026-07-04 10:27:38 +08:00
2025-06-02 18:50:12 +08:00
2026-04-12 15:42:36 +08:00
2025-06-02 18:50:12 +08:00
2025-06-02 18:50:12 +08:00
2025-06-02 18:50:12 +08:00
2025-06-02 18:50:12 +08:00
2025-06-02 18:50:12 +08:00
2025-06-02 18:50:12 +08:00

LPT-FE

This template should help get you started developing with Vue 3 in Vite.

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
S
Description
No description provided
Readme 6.2 MiB
Languages
Vue 61.8%
TypeScript 37.1%
CSS 0.7%
Dockerfile 0.2%
HTML 0.2%