fix(测试跟踪):脑图切换到列表时,加载过程中会显示多余的页面

--bug=1024842 --user=王旭 【测试跟踪】github#23067,脑图切换到列表时,加载过程中会显示多余的页面 https://www.tapd.cn/55049933/s/1357972
This commit is contained in:
WangXu10 2023-03-31 10:26:31 +08:00 committed by jianxing
parent e141d71f2a
commit ec3a42c9ea
2 changed files with 9 additions and 3 deletions

View File

@ -536,12 +536,15 @@ export default {
openCustomHeader() { openCustomHeader() {
this.$refs.customTableHeader.open(this.fields); this.$refs.customTableHeader.open(this.fields);
}, },
resetHeader() { resetHeader(callback) {
this.$emit('update:fields', getCustomTableHeader(this.fieldKey, this.customFields)); this.$emit('update:fields', getCustomTableHeader(this.fieldKey, this.customFields));
this.tableActive = false; this.tableActive = false;
this.$nextTick(() => { this.$nextTick(() => {
this.doLayout(); this.doLayout();
this.tableActive = true; this.tableActive = true;
if (callback) {
callback();
}
}); });
this.listenRowDrop(); this.listenRowDrop();
}, },

View File

@ -640,10 +640,13 @@ export default {
this.$nextTick(() => { this.$nextTick(() => {
if (this.$refs.table) { if (this.$refs.table) {
this.$refs.table.resetHeader(); this.$refs.table.resetHeader(() => {
}
this.loading = false; this.loading = false;
}); });
} else {
this.loading = false;
}
});
}); });
}, },
checkCurrentProject() { checkCurrentProject() {