提交 c538692e authored 作者: lihuihui's avatar lihuihui

修改缓存题随机时间

上级 b224f3bb
......@@ -116,7 +116,9 @@ export default {
mounted() {
clearInterval(this.setCacheTime)
this.setCacheTime = setInterval(() => {
this.setCache()
setTimeout(() => {
this.setCache()
}, Math.floor(Math.random() * (5 - 0 + 1) + 0) * 1000)
}, 10000)
this.dataCombined()
},
......@@ -300,9 +302,10 @@ export default {
this.endExamRequest()
})
} else {
this.$alert(err.message, {
callback: action => {}
})
// this.$alert(err.message, {
// callback: action => {}
// })
console.log(err.message)
}
})
},
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论