fix(接口测试): 修复场景定时任务关于默认环境切换的问题
--bug=1039615 --user=宋天阳 https://www.tapd.cn/55049933/s/1500199
This commit is contained in:
parent
4893acce0c
commit
523017eb2e
|
@ -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'));
|
||||||
|
|
Loading…
Reference in New Issue