fix(接口测试): 修复大场景实时生成报告数据不显示问题

--bug=1019898 --user=赵勇 【接口测试】禁用本地执行,使用k8s资源池执行接口后,场景中调试/生成报告场景失败 https://www.tapd.cn/55049933/s/1304454
This commit is contained in:
fit2-zhao 2022-11-24 14:17:55 +08:00 committed by fit2-zhao
parent aac754d1c3
commit 492dc0acf5
1 changed files with 21 additions and 17 deletions

View File

@ -347,6 +347,9 @@ export default {
getScenarioReport(this.reportId).then((response) => {
this.report = response.data || {};
if (response.data) {
if (response.data.status === 'RUNNING') {
setTimeout(this.getReport, 2000);
} else {
this.content = JSON.parse(response.data.content);
if (!this.content) {
this.content = { scenarios: [] };
@ -366,6 +369,7 @@ export default {
if ('Running' !== this.report.status) {
this.$emit('finish');
}
}
});
},
checkOrder(origin) {