From 0d91b38fca7ef25a34ca56141abf822bb7258f7d Mon Sep 17 00:00:00 2001 From: ronger Date: Sat, 20 Feb 2021 16:55:43 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E7=AD=94=E9=A2=98=E5=A5=96?= =?UTF-8?q?=E5=8A=B1=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/answer.vue | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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'); }) } },