diff --git a/api-test/frontend/src/business/definition/ApiDefinition.vue b/api-test/frontend/src/business/definition/ApiDefinition.vue index a80a8bd757..78ff489449 100644 --- a/api-test/frontend/src/business/definition/ApiDefinition.vue +++ b/api-test/frontend/src/business/definition/ApiDefinition.vue @@ -748,7 +748,9 @@ export default { this.apiDefaultTab = activeName this.apiTabs = tabs.filter(tab => tab.name !== targetName); this.$refs.mainTabs.$children = []; - this.$refs.apiDefList[0].refreshTable(); + if (this.$refs.apiDefList[0]) { + this.$refs.apiDefList[0].refreshTable(); + } }, //创建左侧树的根目录模块 createRootModel() {