fix(测试跟踪): 功能用例批量删除后模块树统计错误

--bug=1018656 --user=陈建星 【测试跟踪】测试跟踪-功能用例左侧tree偶现统计不正确问题 https://www.tapd.cn/55049933/s/1273572
This commit is contained in:
chenjianxing 2022-10-24 10:19:04 +08:00 committed by jianxing
parent fdb945bc7a
commit f68deab837
1 changed files with 7 additions and 1 deletions

View File

@ -756,7 +756,13 @@ export default {
this.treeNodes = data;
},
setCondition(data) {
this.condition = data;
if (this.activeName === 'trash' && this.$refs.testCaseTrashList) {
this.condition = this.$refs.testCaseTrashList.condition;
} else if (this.activeName === 'default' && this.$refs.testCaseList) {
this.condition = this.$refs.testCaseList.condition;
} else {
this.condition = data;
}
},
getProject() {
getProjectApplicationConfig('CASE_CUSTOM_NUM')