From a687ccce8eacd1b6f57216243735bc8418d834e5 Mon Sep 17 00:00:00 2001 From: Ambitiousliga <73278880+Ambitiousliga@users.noreply.github.com> Date: Fri, 5 Mar 2021 17:32:11 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E5=AE=9A=E4=B9=89)?= =?UTF-8?q?=EF=BC=9A=E4=BF=AE=E5=A4=8D=E5=88=A0=E9=99=A4CASE=E6=97=B6?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E2=80=9C=E7=A1=AE=E8=AE=A4=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E2=80=9D=E5=BC=B9=E7=AA=97=20(#1571)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 黎龙鑫 --- .../components/list/ApiCaseSimpleList.vue | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/frontend/src/business/components/api/definition/components/list/ApiCaseSimpleList.vue b/frontend/src/business/components/api/definition/components/list/ApiCaseSimpleList.vue index 274fa56e84..ebf3adb74e 100644 --- a/frontend/src/business/components/api/definition/components/list/ApiCaseSimpleList.vue +++ b/frontend/src/business/components/api/definition/components/list/ApiCaseSimpleList.vue @@ -473,9 +473,16 @@ export default { }, handleDelete(apiCase) { // if (this.trashEnable) { - this.$get('/api/testcase/delete/' + apiCase.id, () => { - this.$success(this.$t('commons.delete_success')); - this.initTable(); + this.$alert(this.$t('api_test.definition.request.delete_confirm') + ' ' + apiCase.name + " ?", '', { + confirmButtonText: this.$t('commons.confirm'), + callback: (action) => { + if (action === 'confirm') { + this.$get('/api/testcase/delete/' + apiCase.id, () => { + this.$success(this.$t('commons.delete_success')); + this.initTable(); + }); + } + } }); return; },