答题奖励规则

This commit is contained in:
ronger 2021-02-20 16:55:43 +08:00
parent e6730d4011
commit 0d91b38fca

View File

@ -89,13 +89,11 @@ export default {
answer: _ts.answer answer: _ts.answer
}).then(function (res) { }).then(function (res) {
if (res) { if (res) {
if (res.respFlag) { _ts.$message.success('回答正确!');
_ts.$message(res.message); } else {
_ts.$store.dispatch('answer/fetchDetail'); _ts.$message.error('回答错误!');
} else {
_ts.$message(res.message);
}
} }
_ts.$store.dispatch('answer/fetchDetail');
}) })
} }
}, },