From ec3a42c9eaebd37d4662aad918d528bd4f68b629 Mon Sep 17 00:00:00 2001 From: WangXu10 Date: Fri, 31 Mar 2023 10:26:31 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA)?= =?UTF-8?q?=EF=BC=9A=E8=84=91=E5=9B=BE=E5=88=87=E6=8D=A2=E5=88=B0=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E6=97=B6=EF=BC=8C=E5=8A=A0=E8=BD=BD=E8=BF=87=E7=A8=8B?= =?UTF-8?q?=E4=B8=AD=E4=BC=9A=E6=98=BE=E7=A4=BA=E5=A4=9A=E4=BD=99=E7=9A=84?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1024842 --user=王旭 【测试跟踪】github#23067,脑图切换到列表时,加载过程中会显示多余的页面 https://www.tapd.cn/55049933/s/1357972 --- .../sdk-parent/frontend/src/components/new-ui/MsTable.vue | 5 ++++- .../frontend/src/business/case/components/TestCaseList.vue | 7 +++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/framework/sdk-parent/frontend/src/components/new-ui/MsTable.vue b/framework/sdk-parent/frontend/src/components/new-ui/MsTable.vue index 94f443fa69..f0dbef69f9 100644 --- a/framework/sdk-parent/frontend/src/components/new-ui/MsTable.vue +++ b/framework/sdk-parent/frontend/src/components/new-ui/MsTable.vue @@ -536,12 +536,15 @@ export default { openCustomHeader() { this.$refs.customTableHeader.open(this.fields); }, - resetHeader() { + resetHeader(callback) { this.$emit('update:fields', getCustomTableHeader(this.fieldKey, this.customFields)); this.tableActive = false; this.$nextTick(() => { this.doLayout(); this.tableActive = true; + if (callback) { + callback(); + } }); this.listenRowDrop(); }, diff --git a/test-track/frontend/src/business/case/components/TestCaseList.vue b/test-track/frontend/src/business/case/components/TestCaseList.vue index 1b83d6bb0c..26b4557e50 100644 --- a/test-track/frontend/src/business/case/components/TestCaseList.vue +++ b/test-track/frontend/src/business/case/components/TestCaseList.vue @@ -640,9 +640,12 @@ export default { this.$nextTick(() => { if (this.$refs.table) { - this.$refs.table.resetHeader(); + this.$refs.table.resetHeader(() => { + this.loading = false; + }); + } else { + this.loading = false; } - this.loading = false; }); }); },