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 @@
-
+
{{ row.num }}
-
+
-
+
-
+
{{ row.name }}
-
+
-
+
@@ -32,7 +34,7 @@
+ width="100">
{{ row.caseTotal }}
@@ -40,7 +42,8 @@
+ :label="$t('api_test.home_page.new_case_list.table_coloum.relation_scenario')"
+ width="100">
{{ row.scenarioTotal }}
@@ -196,7 +199,7 @@ export default {
redirect(pageType, param) {
switch (pageType) {
case "api":
- this.$emit('redirectPage', 'api', 'api', 'apiList:' + param);
+ this.$router.push('/api/definition?resourceId=' + param)
break;
case "apiCase":
this.$emit('redirectPage', 'api', 'apiTestCase', 'singleList:' + param);