fix(接口测试): 修复场景调试共享cookie丢失问题

--bug=1009425 --user=赵勇 【接口自动化】场景里面复制了其他场景-单独调试和整体调试结果不一致,原因应该是单独调试一个场景时没有共享cookie https://www.tapd.cn/55049933/s/1089216
This commit is contained in:
fit2-zhao 2021-12-31 16:57:16 +08:00 committed by fit2-zhao
parent a3ff59cf51
commit 845bea0ea4
1 changed files with 2 additions and 2 deletions

View File

@ -1189,11 +1189,11 @@ export default {
type: "scenario",
variables: scenario ? scenario.variables : this.currentScenario.variables,
referenced: 'Created',
enableCookieShare: scenario ? scenario.enableCookieShare : this.enableCookieShare,
enableCookieShare: this.enableCookieShare,
headers: scenario ? scenario.headers : this.currentScenario.headers,
environmentMap: scenario && scenario.environmentEnable ? scenario.environmentMap : this.projectEnvMap,
hashTree: scenario ? scenario.hashTree : this.scenarioDefinition,
onSampleError: scenario ? scenario.onSampleError : this.onSampleError,
onSampleError: this.onSampleError,
};
if (scenario && scenario.environmentEnable) {
this.debugData.environmentEnable = scenario.environmentEnable;