diff --git a/pages/answer.vue b/pages/answer.vue index a0fd87c..600e0e5 100644 --- a/pages/answer.vue +++ b/pages/answer.vue @@ -89,13 +89,11 @@ export default { answer: _ts.answer }).then(function (res) { if (res) { - if (res.respFlag) { - _ts.$message(res.message); - _ts.$store.dispatch('answer/fetchDetail'); - } else { - _ts.$message(res.message); - } + _ts.$message.success('回答正确!'); + } else { + _ts.$message.error('回答错误!'); } + _ts.$store.dispatch('answer/fetchDetail'); }) } },