fix: UI报告失败tab不显示内容

This commit is contained in:
AnAngle 2022-04-16 16:01:55 +08:00 committed by zhangdahai112
parent b1a4003570
commit c3a0fb6eb9
1 changed files with 5 additions and 3 deletions

View File

@ -51,7 +51,7 @@ export default {
}, },
computed: { computed: {
isUi() { isUi() {
return this.report.reportType && this.report.reportType.startsWith("UI"); return this.report && this.report.reportType && this.report.reportType.startsWith("UI");
}, },
}, },
methods: { methods: {
@ -70,8 +70,10 @@ export default {
return true; return true;
} }
}else { }else {
if (!data.errorCode || data.errorCode === "") { if (this.isUi) {
return data.value.error > 0 || (this.isUi && !data.value.success && data.value.body); return data.value.success === false;
} else if (!data.errorCode || data.errorCode === "") {
return data.value.error > 0;
} }
} }
} }