fix(测试跟踪): 功能用例回收站恢复后没有刷新用例列表数量统计
--bug=1015675 --user=陈建星 【测试跟踪】功能用例,从回收站回收用例,查看用例列表,左侧模块数未更新,需要手动刷新浏览器 https://www.tapd.cn/55049933/s/1219975
This commit is contained in:
parent
02523e4ef0
commit
8c14a3871d
|
@ -277,6 +277,7 @@ export default {
|
||||||
versionEnable: false,
|
versionEnable: false,
|
||||||
isAsideHidden: true,
|
isAsideHidden: true,
|
||||||
ignoreTreeNodes: false,
|
ignoreTreeNodes: false,
|
||||||
|
hasRefreshDefault: true
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
@ -317,6 +318,13 @@ export default {
|
||||||
if (oldVal !== 'default' && newVal === 'default' && this.$refs.minder) {
|
if (oldVal !== 'default' && newVal === 'default' && this.$refs.minder) {
|
||||||
this.$refs.minder.refresh();
|
this.$refs.minder.refresh();
|
||||||
}
|
}
|
||||||
|
if (oldVal === 'trash' && newVal === 'default') {
|
||||||
|
// 在回收站恢复后,切到列表页面刷新
|
||||||
|
if (!this.hasRefreshDefault) {
|
||||||
|
this.refreshAll();
|
||||||
|
this.hasRefreshDefault = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
activeDom(newVal, oldVal) {
|
activeDom(newVal, oldVal) {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
|
@ -693,6 +701,7 @@ export default {
|
||||||
},
|
},
|
||||||
refreshTrashNode() {
|
refreshTrashNode() {
|
||||||
this.$refs.trashNodeTree.list();
|
this.$refs.trashNodeTree.list();
|
||||||
|
this.hasRefreshDefault = false;
|
||||||
},
|
},
|
||||||
refreshTreeByCaseFilter() {
|
refreshTreeByCaseFilter() {
|
||||||
if (this.publicEnable) {
|
if (this.publicEnable) {
|
||||||
|
|
Loading…
Reference in New Issue