Commit d2d54c83 by 陆志强

feat: 优化接口时机

parent 42b8da16
...@@ -181,14 +181,14 @@ export default { ...@@ -181,14 +181,14 @@ export default {
this.$toast('回答错误!谢谢参与') this.$toast('回答错误!谢谢参与')
} }
this.info.answerStatus = 1 this.info.answerStatus = 1
Bus.$emit('LotteryInfoUpdate', {
id: this.$route.query.id,
playId: this.$route.query.sessionId,
})
setTimeout(() => { setTimeout(() => {
if (this.$route.query.backUrl) { if (this.$route.query.backUrl) {
window.location.href = this.$route.query.backUrl window.location.href = this.$route.query.backUrl
} }
Bus.$emit('LotteryInfoUpdate', {
id: this.$route.query.id,
playId: this.$route.query.sessionId,
})
}, 1500) }, 1500)
} else { } else {
this.$toast(res.errorMessage) this.$toast(res.errorMessage)
......
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 sign in to comment