diff --git a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiDefinitionMapper.xml b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiDefinitionMapper.xml index 14c47d2abb..8a4a198e82 100644 --- a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiDefinitionMapper.xml +++ b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiDefinitionMapper.xml @@ -717,8 +717,9 @@ diff --git a/frontend/src/business/components/api/definition/ApiDefinition.vue b/frontend/src/business/components/api/definition/ApiDefinition.vue index e9e0175144..923347d00e 100644 --- a/frontend/src/business/components/api/definition/ApiDefinition.vue +++ b/frontend/src/business/components/api/definition/ApiDefinition.vue @@ -383,6 +383,7 @@ export default { }); }, '$route'(to, from) { // 路由改变时,把接口定义界面中的 ctrl s 保存快捷键监听移除 + window.location.reload(); if (to.path.indexOf('/api/definition') === -1) { if (this.$refs && this.$refs.apiConfig) { this.$refs.apiConfig.forEach(item => { @@ -390,7 +391,7 @@ export default { }); } } - } + }, }, created() { this.getEnv(); diff --git a/frontend/src/business/components/api/homepage/components/ApiNewTestCaseList.vue b/frontend/src/business/components/api/homepage/components/ApiNewTestCaseList.vue index b2b3844bc4..30d957d003 100644 --- a/frontend/src/business/components/api/homepage/components/ApiNewTestCaseList.vue +++ b/frontend/src/business/components/api/homepage/components/ApiNewTestCaseList.vue @@ -4,19 +4,21 @@ - + - + @@ -32,7 +34,7 @@ + width="100"> + :label="$t('api_test.home_page.new_case_list.table_coloum.relation_scenario')" + width="100">