[update] 修改bug80043

This commit is contained in:
lideqin
2024-01-08 10:15:07 +08:00
parent 677bf4bc71
commit 1123b946f8
@@ -293,12 +293,18 @@ export default {
},
// 删除回答
deleteAnswer (answerId) {
deleteAnswer({ id: answerId }).then(res => {
if (res.success) {
this.$message.success(res.message)
this.initData(this.model.id)
} else {
this.$message.warning(res.message)
this.$confirm({
title: this.$t('confirmDeletion'),
content: this.$t('areYouSure'),
onOk: () => {
deleteAnswer({ id: answerId }).then(res => {
if (res.success) {
this.$message.success(res.message)
this.initData(this.model.id)
} else {
this.$message.warning(res.message)
}
})
}
})
}