删除返回操作是否成功信息
This commit is contained in:
parent
4072740f68
commit
5e9bc87311
|
@ -183,7 +183,13 @@ export default {
|
||||||
//删除
|
//删除
|
||||||
del(id) {
|
del(id) {
|
||||||
deleteQuestion({ id: id }).then((res) => {
|
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('后台报错了~');
|
||||||
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue