Commit 8d7d59a1 by 陆志强

feat: 优化答案显示时机

parent 1cdc1885
......@@ -173,13 +173,13 @@ export default {
}
},
submitAnswer(data) {
if (this.info.question.options[Number(this.answer)].isRight) {
this.$toast('回答正确!点击抽奖进行抽奖')
} else {
this.$toast('回答错误!谢谢参与')
}
saveAnswer(data).then((res) => {
if (res.code === 200 && res.errorCode === 0) {
if (this.info.question.options[Number(this.answer)].isRight) {
this.$toast('回答正确!点击抽奖进行抽奖')
} else {
this.$toast('回答错误!谢谢参与')
}
setTimeout(() => {
if (this.$route.query.backUrl) {
window.location.href = this.$route.query.backUrl
......
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