fix: 修复类型检查报错并统一有效时间比显示

This commit is contained in:
2026-09-13 23:38:49 +08:00
parent 132cb706d7
commit 99a1b16196
7 changed files with 50 additions and 22 deletions
@@ -113,6 +113,8 @@ describe('StartTask.vue', () => {
expect(wrapper.vm.taskInfo.sessionState).toBe('PAUSED')
expect(wrapper.vm.taskInfo.actualTime).toBe(10)
expect(wrapper.vm.taskInfo.effectiveTime).toBe(20)
// 后端返回 0.8,UI 统一按百分比展示
expect(wrapper.vm.taskInfo.effectivenessRatio).toBe('80.0%')
expect(wrapper.vm.timerRunning).toBe(false)
wrapper.unmount()
})