fix(测试跟踪): 功能用例回收站恢复后没有刷新用例列表数量统计

--bug=1015675 --user=陈建星 【测试跟踪】功能用例,从回收站回收用例,查看用例列表,左侧模块数未更新,需要手动刷新浏览器 https://www.tapd.cn/55049933/s/1219975
This commit is contained in:
chenjianxing 2022-08-05 14:23:01 +08:00 committed by jianxing
parent afa5b2f94c
commit 390ab910a3
1 changed files with 9 additions and 0 deletions

View File

@ -277,6 +277,7 @@ export default {
versionEnable: false,
isAsideHidden: true,
ignoreTreeNodes: false,
hasRefreshDefault: true
};
},
created() {
@ -317,6 +318,13 @@ export default {
if (oldVal !== 'default' && newVal === 'default' && this.$refs.minder) {
this.$refs.minder.refresh();
}
if (oldVal === 'trash' && newVal === 'default') {
//
if (!this.hasRefreshDefault) {
this.refreshAll();
this.hasRefreshDefault = true;
}
}
},
activeDom(newVal, oldVal) {
this.$nextTick(() => {
@ -693,6 +701,7 @@ export default {
},
refreshTrashNode() {
this.$refs.trashNodeTree.list();
this.hasRefreshDefault = false;
},
refreshTreeByCaseFilter() {
if (this.publicEnable) {