diff --git a/test-track/frontend/src/business/case/TestCase.vue b/test-track/frontend/src/business/case/TestCase.vue index 69b6cace5b..3d812c3ed3 100644 --- a/test-track/frontend/src/business/case/TestCase.vue +++ b/test-track/frontend/src/business/case/TestCase.vue @@ -266,13 +266,6 @@ export default { this.refresh(); } }, - activeDom(newVal, oldVal) { - this.$nextTick(() => { - if (oldVal !== 'left' && newVal === 'left' && this.$refs.testCaseList) { - this.$refs.testCaseList.getTemplateField(); - } - }); - }, trashEnable() { if (this.trashEnable) { this.activeName = 'trash'; diff --git a/test-track/frontend/src/business/case/components/TestCaseList.vue b/test-track/frontend/src/business/case/components/TestCaseList.vue index 9b8ecf6606..44c76ee19f 100644 --- a/test-track/frontend/src/business/case/components/TestCaseList.vue +++ b/test-track/frontend/src/business/case/components/TestCaseList.vue @@ -626,6 +626,7 @@ export default { }); let p2 = getTestTemplate(); Promise.all([p1, p2]).then((data) => { + this.loading = false; let template = data[1]; this.testCaseTemplate = template; this.fields = getTableHeaderWithCustomFields(this.tableHeaderKey, this.testCaseTemplate.customFields, this.members); @@ -637,16 +638,6 @@ export default { name: this.$t('commons.tag') }) getCustomFieldBatchEditOption(template.customFields, this.typeArr, this.valueArr, this.members); - - this.$nextTick(() => { - if (this.$refs.table) { - this.$refs.table.resetHeader(() => { - this.loading = false; - }); - } else { - this.loading = false; - } - }); }); }, checkCurrentProject() {