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

修改缓存题随机时间

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