From e413afea11ad726e9bc2f78368005d34b3cf84a3 Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Thu, 20 Apr 2023 15:50:58 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92=E5=85=B3=E8=81=94=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E7=94=A8=E4=BE=8B=E9=A1=B5=E9=9D=A2=EF=BC=8C=E6=A8=A1?= =?UTF-8?q?=E5=9D=97=E6=95=B0=E6=8D=AE=E6=88=90=E6=98=BE=E7=A4=BA=E4=B8=8A?= =?UTF-8?q?=E4=B8=80=E6=AC=A1=E5=88=87=E6=8D=A2=E9=A1=B9=E7=9B=AE=E5=90=8E?= =?UTF-8?q?=E7=9A=84=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1025631 --user=陈建星 【测试跟踪】测试计划-切换项目关联项目下所有功能用例-再次关联默认项目模块树为空 https://www.tapd.cn/55049933/s/1364847 --- .../plan/view/comonents/functional/FunctionalRelevance.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test-track/frontend/src/business/plan/view/comonents/functional/FunctionalRelevance.vue b/test-track/frontend/src/business/plan/view/comonents/functional/FunctionalRelevance.vue index 6f335bdb35..f132b0042c 100644 --- a/test-track/frontend/src/business/plan/view/comonents/functional/FunctionalRelevance.vue +++ b/test-track/frontend/src/business/plan/view/comonents/functional/FunctionalRelevance.vue @@ -216,6 +216,9 @@ export default { }, watch: { projectId(val) { + if (!this.projectId) { + return; + } this.setConditionModuleIdParam(); this.page.condition.projectId = this.projectId; this.page.condition.versionId = null; @@ -234,9 +237,6 @@ export default { this.$refs.table.clear(); this.$refs.table.clearSort(); } - if (this.projectId) { - this.getProjectNode(this.projectId); - } }, setProject(projectId) { this.projectId = projectId; @@ -300,6 +300,7 @@ export default { close() { this.selectNodeIds = []; this.selectNodeNames = []; + this.projectId = ''; this.$refs.table.clear(); }, getProjectNode(projectId, condition) {