[update] 修改bug80043
This commit is contained in:
@@ -293,12 +293,18 @@ export default {
|
|||||||
},
|
},
|
||||||
// 删除回答
|
// 删除回答
|
||||||
deleteAnswer (answerId) {
|
deleteAnswer (answerId) {
|
||||||
deleteAnswer({ id: answerId }).then(res => {
|
this.$confirm({
|
||||||
if (res.success) {
|
title: this.$t('confirmDeletion'),
|
||||||
this.$message.success(res.message)
|
content: this.$t('areYouSure'),
|
||||||
this.initData(this.model.id)
|
onOk: () => {
|
||||||
} else {
|
deleteAnswer({ id: answerId }).then(res => {
|
||||||
this.$message.warning(res.message)
|
if (res.success) {
|
||||||
|
this.$message.success(res.message)
|
||||||
|
this.initData(this.model.id)
|
||||||
|
} else {
|
||||||
|
this.$message.warning(res.message)
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user