From 523017eb2e9facb097b40a022bf2a911dc46adfc Mon Sep 17 00:00:00 2001 From: Jianguo-Genius Date: Wed, 17 Apr 2024 19:24:37 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9C=BA=E6=99=AF=E5=AE=9A=E6=97=B6=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E5=85=B3=E4=BA=8E=E9=BB=98=E8=AE=A4=E7=8E=AF=E5=A2=83?= =?UTF-8?q?=E5=88=87=E6=8D=A2=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1039615 --user=宋天阳 https://www.tapd.cn/55049933/s/1500199 --- .../views/api-test/scenario/components/scenarioTable.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/api-test/scenario/components/scenarioTable.vue b/frontend/src/views/api-test/scenario/components/scenarioTable.vue index 6e7293c821..84bce948b9 100644 --- a/frontend/src/views/api-test/scenario/components/scenarioTable.vue +++ b/frontend/src/views/api-test/scenario/components/scenarioTable.vue @@ -1230,7 +1230,11 @@ if (!errors) { try { scheduleModalLoading.value = true; - await scenarioScheduleConfig({ ...scheduleConfig.value }); + const updateParam = { ...scheduleConfig.value }; + if (!scheduleUseNewEnv.value) { + updateParam.config.environmentId = undefined; + } + await scenarioScheduleConfig(updateParam); // 初始化弹窗标题 if (tableRecord.value?.scheduleConfig) { Message.success(t('common.updateSuccess'));