fix(测试跟踪): 脑图保存完不自动刷新

--bug=1014144 --user=陈建星 【测试跟踪】脑图用例保存后跳转到模块级别,应停留在当前页面 https://www.tapd.cn/55049933/s/1186218
This commit is contained in:
chenjianxing 2022-06-20 10:43:51 +08:00 committed by f2c-ci-robot[bot]
parent d485174edb
commit 528a9edc4d
1 changed files with 9 additions and 0 deletions

View File

@ -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;