From 7896d7bd8f09e1090bdb3b4a3b0816bee906e5e6 Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Wed, 24 Aug 2022 17:30:50 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E5=AE=9A=E4=B9=89):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AE=9A=E6=97=B6=E5=90=8C=E6=AD=A5=E5=AE=9A?= =?UTF-8?q?=E6=97=B6=E4=BB=BB=E5=8A=A1=E6=8F=90=E7=A4=BA=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1016261 --user=王孝刚 【接口测试】github#17263,任务状态本就是关闭,想要打开,点击后,仍然弹出“关闭任务”的弹框。 https://www.tapd.cn/55049933/s/1233142 --- .../api/definition/components/import/SwaggerTaskList.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/frontend/src/business/components/api/definition/components/import/SwaggerTaskList.vue b/frontend/src/business/components/api/definition/components/import/SwaggerTaskList.vue index 023ccbc2c4..63ee52cf44 100644 --- a/frontend/src/business/components/api/definition/components/import/SwaggerTaskList.vue +++ b/frontend/src/business/components/api/definition/components/import/SwaggerTaskList.vue @@ -80,8 +80,12 @@ export default { this.$emit('rowClick', row); }, closeTaskConfirm(row) { - row.enable = !row.enable - operationConfirm(this, this.$t('api_test.home_page.running_task_list.confirm.close_title'), () => { + let message = this.$t('api_test.home_page.running_task_list.confirm.close_title'); + if (row.enable) { + message = this.$t('api_test.home_page.running_task_list.confirm.open_title'); + } + row.enable = !row.enable; + operationConfirm(this, message, () => { row.enable = !row.enable this.updateTask(row); });