fix(接口场景): 引用 case 后新建自定义请求数据问题修复

This commit is contained in:
baiqi 2024-07-17 18:28:08 +08:00 committed by Craftsman
parent 8fd06968bb
commit f48145b1a0
2 changed files with 2 additions and 1 deletions

View File

@ -968,7 +968,7 @@
function handleClose() { function handleClose() {
if (isReplace.value) { if (isReplace.value) {
isReplace.value = false; isReplace.value = false;
} else { } else if (!requestVModel.value.isNew) {
emit('applyStep', cloneDeep(makeRequestParams()) as RequestParam); emit('applyStep', cloneDeep(makeRequestParams()) as RequestParam);
} }
} }

View File

@ -1240,6 +1240,7 @@
if (_stepType.isQuoteCase && !realStep.isQuoteScenarioStep) { if (_stepType.isQuoteCase && !realStep.isQuoteScenarioStep) {
realStep.name = request.stepName || request.name; realStep.name = request.stepName || request.name;
stepDetails.value[realStep.id] = request; // polymorphicName stepDetails.value[realStep.id] = request; // polymorphicName
activeStep.value = undefined;
return; return;
} }
} }