fix(接口测试): 修复场景定时任务关于默认环境切换的问题

--bug=1039615 --user=宋天阳 https://www.tapd.cn/55049933/s/1500199
This commit is contained in:
Jianguo-Genius 2024-04-17 19:24:37 +08:00 committed by 刘瑞斌
parent 4893acce0c
commit 523017eb2e
1 changed files with 5 additions and 1 deletions

View File

@ -1230,7 +1230,11 @@
if (!errors) { if (!errors) {
try { try {
scheduleModalLoading.value = true; 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) { if (tableRecord.value?.scheduleConfig) {
Message.success(t('common.updateSuccess')); Message.success(t('common.updateSuccess'));