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 02523e4ef0
commit 8c14a3871d
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) {