refactor: 接口自动化在编辑页面进行调试时不会出发保存操作

接口自动化在编辑页面进行调试时不会出发保存操作
This commit is contained in:
song-tianyang 2021-05-26 15:35:18 +08:00 committed by 刘瑞斌
parent 3a443e4fcb
commit 900f0ea343
1 changed files with 16 additions and 14 deletions

View File

@ -848,20 +848,22 @@
if (!sign) {
return;
}
this.editScenario().then(() => {
this.debugData = {
id: this.currentScenario.id,
name: this.currentScenario.name,
type: "scenario",
variables: this.currentScenario.variables,
referenced: 'Created',
enableCookieShare: this.enableCookieShare,
headers: this.currentScenario.headers,
environmentMap: this.projectEnvMap,
hashTree: this.scenarioDefinition
};
this.reportId = getUUID().substring(0, 8);
})
//
this.debugData = {
id: this.currentScenario.id,
name: this.currentScenario.name,
type: "scenario",
variables: this.currentScenario.variables,
referenced: 'Created',
enableCookieShare: this.enableCookieShare,
headers: this.currentScenario.headers,
environmentMap: this.projectEnvMap,
hashTree: this.scenarioDefinition
};
this.reportId = getUUID().substring(0, 8);
// this.editScenario().then(() => {
//
// })
})
})