From 8c14a3871d6426e52d8345ab52e33bd33887aff1 Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Fri, 5 Aug 2022 14:23:01 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E7=94=A8=E4=BE=8B=E5=9B=9E=E6=94=B6=E7=AB=99?= =?UTF-8?q?=E6=81=A2=E5=A4=8D=E5=90=8E=E6=B2=A1=E6=9C=89=E5=88=B7=E6=96=B0?= =?UTF-8?q?=E7=94=A8=E4=BE=8B=E5=88=97=E8=A1=A8=E6=95=B0=E9=87=8F=E7=BB=9F?= =?UTF-8?q?=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1015675 --user=陈建星 【测试跟踪】功能用例,从回收站回收用例,查看用例列表,左侧模块数未更新,需要手动刷新浏览器 https://www.tapd.cn/55049933/s/1219975 --- frontend/src/business/components/track/case/TestCase.vue | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/frontend/src/business/components/track/case/TestCase.vue b/frontend/src/business/components/track/case/TestCase.vue index 2972c1dbef..faf0983be2 100644 --- a/frontend/src/business/components/track/case/TestCase.vue +++ b/frontend/src/business/components/track/case/TestCase.vue @@ -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) {