From 3303e8c6bc7266b56380ba7c9a45ab5cce9f7b1f Mon Sep 17 00:00:00 2001 From: shiziyuan9527 Date: Mon, 25 Jul 2022 15:23:41 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E5=AE=9A=E6=97=B6=E5=90=8C=E6=AD=A5=E5=AF=BC=E5=85=A5Swagger?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E7=9A=84=E4=BB=BB=E5=8A=A1=E9=80=9A=E7=9F=A5?= =?UTF-8?q?=E4=BF=9D=E5=AD=98=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1015241 --user=李玉号 【接口测试】接口定义-定时同步导入Swagger 接口-修改任务通知保存时实际上该通知被删除 https://www.tapd.cn/55049933/s/1210101 --- .../main/java/io/metersphere/notice/service/NoticeService.java | 1 + .../api/definition/components/import/SwaggerTaskNotification.vue | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/main/java/io/metersphere/notice/service/NoticeService.java b/backend/src/main/java/io/metersphere/notice/service/NoticeService.java index 18612829f6..350fe47db9 100644 --- a/backend/src/main/java/io/metersphere/notice/service/NoticeService.java +++ b/backend/src/main/java/io/metersphere/notice/service/NoticeService.java @@ -151,6 +151,7 @@ public class NoticeService { messageDetail.setWebhook(m.getWebhook()); messageDetail.setIdentification(m.getIdentification()); messageDetail.setType(m.getType()); + messageDetail.setTestId(m.getTestId()); messageDetail.setIsSet(m.getIsSet()); messageDetail.setCreateTime(m.getCreateTime()); messageDetail.setTemplate(m.getTemplate()); diff --git a/frontend/src/business/components/api/definition/components/import/SwaggerTaskNotification.vue b/frontend/src/business/components/api/definition/components/import/SwaggerTaskNotification.vue index 14abc4df07..514051ea98 100644 --- a/frontend/src/business/components/api/definition/components/import/SwaggerTaskNotification.vue +++ b/frontend/src/business/components/api/definition/components/import/SwaggerTaskNotification.vue @@ -84,7 +84,6 @@ export default { initForm() { this.result = this.$get('/notice/search/message/' + this.apiTestId, response => { this.scheduleTask = response.data; - this.scheduleTask.testId = this.apiTestId; }); }, handleAddTaskModel() {