diff --git a/src/views/course/question/QuestionList.vue b/src/views/course/question/QuestionList.vue index e1339ae..12f99bd 100644 --- a/src/views/course/question/QuestionList.vue +++ b/src/views/course/question/QuestionList.vue @@ -183,7 +183,13 @@ export default { //删除 del(id) { deleteQuestion({ id: id }).then((res) => { - if (res.code == 200) this.getQuestion() + if (res.code == 200) { + this.getQuestion() + this.$message.success('删除成功!'); + }else{ + this.getQuestion(); + this.$message.error('后台报错了~'); + } }) },