fix(测试跟踪): 脑图保存后,模块树没有刷新

--bug=1024965 --user=陈建星 【测试跟踪】脑图模式-复制模块a到模块b下-保存-脑图未显示复制模块数据 https://www.tapd.cn/55049933/s/1358195
This commit is contained in:
chenjianxing 2023-03-31 15:17:32 +08:00 committed by jianxing
parent 1f503a4c50
commit c8fbeaffd2
1 changed files with 8 additions and 6 deletions

View File

@ -100,7 +100,6 @@ export default {
tags: [this.$t('api_test.definition.request.case'), this.$t('test_track.case.prerequisite'), this.$t('commons.remark'), this.$t('test_track.module.module')], tags: [this.$t('api_test.definition.request.case'), this.$t('test_track.case.prerequisite'), this.$t('commons.remark'), this.$t('test_track.module.module')],
result: {loading: false}, result: {loading: false},
needRefresh: false, needRefresh: false,
noRefresh: false,
noRefreshMinder: false, noRefreshMinder: false,
noRefreshMinderForSelectNode: false, noRefreshMinderForSelectNode: false,
saveCases: [], saveCases: [],
@ -188,7 +187,6 @@ export default {
this.noRefreshMinder = false; this.noRefreshMinder = false;
return; return;
} }
this.noRefresh = true;
// //
if (!useStore().isTestCaseMinderChanged) { if (!useStore().isTestCaseMinderChanged) {
if (this.$refs.minder) { if (this.$refs.minder) {
@ -341,18 +339,22 @@ export default {
item.isExtraNode = false; item.isExtraNode = false;
}); });
this.extraNodeChanged = []; this.extraNodeChanged = [];
if (!this.noRefresh) {
this.$emit('refresh'); this.$emit('refresh');
if (!this.noRefreshMinder) {
// //
// //
this.noRefreshMinder = true; this.noRefreshMinder = true;
}
if (!this.noRefreshMinderForSelectNode) {
if (this.selectNode && this.selectNode.data) { if (this.selectNode && this.selectNode.data) {
// watch -> selectNode // watch -> selectNode
this.noRefreshMinderForSelectNode = true; this.noRefreshMinderForSelectNode = true;
} }
} }
//
this.noRefresh = false;
this.setIsChange(false); this.setIsChange(false);
if (callback && callback instanceof Function) { if (callback && callback instanceof Function) {
callback(); callback();