fix: UI报告失败tab不显示内容
This commit is contained in:
parent
b1a4003570
commit
c3a0fb6eb9
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue