From 1123b946f83ffa9aef56a5369b9d4c5443f1e0b8 Mon Sep 17 00:00:00 2001 From: lideqin <694785430@qq.com> Date: Mon, 8 Jan 2024 10:15:07 +0800 Subject: [PATCH] =?UTF-8?q?[update]=20=E4=BF=AE=E6=94=B9bug80043?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../questionAnswerLibrary/page/AnswerPage.vue | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) 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) + } + }) } }) }