diff --git a/src/views/businessSupport/questionAnswerLibrary/page/AnswerPage.vue b/src/views/businessSupport/questionAnswerLibrary/page/AnswerPage.vue index 5c3dcedd..98a1308d 100644 --- a/src/views/businessSupport/questionAnswerLibrary/page/AnswerPage.vue +++ b/src/views/businessSupport/questionAnswerLibrary/page/AnswerPage.vue @@ -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) + } + }) } }) }