fix(接口测试): 修复切换项目后从场景报告跳转进入场景,模块缺失的缺陷

--bug=1013398 --user=王孝刚 【接口测试】github#13809.
切换项目后,从报告中点击场景用例link进入场景用例页面,页面显示模块信息丢失
https://www.tapd.cn/55049933/s/1162716
This commit is contained in:
wxg0103 2022-05-24 10:39:51 +08:00 committed by fit2-zhao
parent 5e77166b41
commit 25e67dd402
1 changed files with 2 additions and 0 deletions

View File

@ -1622,6 +1622,8 @@ export default {
if (this.currentScenario && this.currentScenario.id) {
this.result = this.$get("/api/automation/getApiScenario/" + this.currentScenario.id, response => {
if (response.data) {
this.currentScenario.apiScenarioModuleId = response.data.apiScenarioModuleId;
this.currentScenario.modulePath = response.data.modulePath;
this.path = "/api/automation/update";
if (response.data.scenarioDefinition != null) {
let obj = JSON.parse(response.data.scenarioDefinition);