fix: ui报告失败列表为空

This commit is contained in:
chenjianxing 2022-03-30 21:23:12 +08:00 committed by zhangdahai112
parent 5a49cc162a
commit e19e275fe3
1 changed files with 6 additions and 1 deletions

View File

@ -48,6 +48,11 @@ export default {
this.$refs.resultsTree.root.expanded = true;
}
},
computed: {
isUi() {
return this.$route && this.$route.meta && this.$route.meta.isUi;
},
},
methods: {
filterNode(value, data) {
if (!data.value && !data.children && data.children.length === 0) {
@ -65,7 +70,7 @@ export default {
}
}else {
if (!data.errorCode || data.errorCode === "") {
return data.value.error > 0;
return data.value.error > 0 || (this.isUi && !data.value.success && data.value.body);
}
}
}