From 528a9edc4d83a2c67c30dc33b6a5317d76c29c76 Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Mon, 20 Jun 2022 10:43:51 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E8=84=91=E5=9B=BE=E4=BF=9D=E5=AD=98=E5=AE=8C=E4=B8=8D=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E5=88=B7=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1014144 --user=陈建星 【测试跟踪】脑图用例保存后跳转到模块级别,应停留在当前页面 https://www.tapd.cn/55049933/s/1186218 --- .../components/track/common/minder/TestCaseMinder.vue | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/frontend/src/business/components/track/common/minder/TestCaseMinder.vue b/frontend/src/business/components/track/common/minder/TestCaseMinder.vue index d3d19c886c..0f59235508 100644 --- a/frontend/src/business/components/track/common/minder/TestCaseMinder.vue +++ b/frontend/src/business/components/track/common/minder/TestCaseMinder.vue @@ -79,6 +79,7 @@ name: "TestCaseMinder", result: {loading: false}, needRefresh: false, noRefresh: false, + noRefreshMinder: false, saveCases: [], saveModules: [], saveModuleNodeMap: new Map(), @@ -152,6 +153,11 @@ name: "TestCaseMinder", methods: { handleNodeUpdateForMinder() { this.noRefresh = true; + if (this.noRefreshMinder) { + // 如果是保存触发的刷新模块,则不刷新脑图 + this.noRefreshMinder = false; + return; + } // 如果脑图没有修改直接刷新,有修改提示 if (!this.$store.state.isTestCaseMinderChanged) { if (this.$refs.minder) { @@ -286,6 +292,9 @@ name: "TestCaseMinder", this.extraNodeChanged = []; if (!this.noRefresh) { this.$emit('refresh'); + // 保存会刷新模块,刷新完模块,脑图也会自动刷新 + // 如果是保存触发的刷新模块,则不刷新脑图 + this.noRefreshMinder = true; } // 由于模块修改刷新的脑图,不刷新模块 this.noRefresh = false;