From 5e9bc873114a767f0ffc9039fb7c4f26e712aab1 Mon Sep 17 00:00:00 2001 From: 18571350067 Date: Tue, 30 Nov 2021 10:09:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E8=BF=94=E5=9B=9E=E6=93=8D?= =?UTF-8?q?=E4=BD=9C=E6=98=AF=E5=90=A6=E6=88=90=E5=8A=9F=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/course/question/QuestionList.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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('后台报错了~'); + } }) },