删除返回操作是否成功信息

This commit is contained in:
18571350067 2021-11-30 10:09:49 +08:00
parent 4072740f68
commit 5e9bc87311
1 changed files with 7 additions and 1 deletions

View File

@ -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('后台报错了~');
}
})
},