Commit a00dcbe3 authored by Damon's avatar Damon

fix: 【ID1001422】【小程序-题库-模拟考试】:考试倒计时一直显示00:00

parent 6367ae1d
......@@ -226,11 +226,12 @@ export default {
if (this.source === 3 && this.beginTime) {
const timestamp = Utils.diffTime(this.beginTime, new Date())
this.timestamp = this.currentTime - timestamp
this.$u.vuex('beginTime', '')
}
},
onHide() {
// 记录进入后台时间
this.$u.vuex('beginTime', new Date())
if (this.source === 3) this.$u.vuex('beginTime', new Date())
},
onLoad(e) {
if (e?.experience) this.experience = JSON.parse(e.experience) // 体验资格
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment