diff --git a/backend/src/main/java/io/metersphere/api/service/APITestService.java b/backend/src/main/java/io/metersphere/api/service/APITestService.java index 648d4a8c4d..cc43c6b390 100644 --- a/backend/src/main/java/io/metersphere/api/service/APITestService.java +++ b/backend/src/main/java/io/metersphere/api/service/APITestService.java @@ -299,8 +299,8 @@ public class APITestService { if (info.length > 1) { provider.setVersion(info[1]); } - provider.setService(info[0]); - provider.setServiceInterface(p); + provider.setService(p); + provider.setServiceInterface(info[0]); Map services = providerService.findByService(p); if (services != null && !services.isEmpty()) { String[] methods = services.values().stream().findFirst().get().getParameter(CommonConstants.METHODS_KEY).split(","); diff --git a/frontend/src/business/components/api/head/ApiHeaderMenus.vue b/frontend/src/business/components/api/head/ApiHeaderMenus.vue index 2fdd1e8bd3..96b83dcca5 100644 --- a/frontend/src/business/components/api/head/ApiHeaderMenus.vue +++ b/frontend/src/business/components/api/head/ApiHeaderMenus.vue @@ -11,7 +11,7 @@ - + @@ -20,7 +20,7 @@ - + @@ -29,7 +29,7 @@ - + @@ -60,7 +60,7 @@ title: this.$t('project.recent'), url: "/project/recent/5", index: function (item) { - return '/api/' + item.id; + return '/api/test/list/' + item.id; }, router: function (item) { return {name: 'ApiTestList', params: {projectId: item.id, projectName: item.name}} diff --git a/frontend/src/business/components/api/test/ApiTestConfig.vue b/frontend/src/business/components/api/test/ApiTestConfig.vue index 5461bc7034..4825f94fe5 100644 --- a/frontend/src/business/components/api/test/ApiTestConfig.vue +++ b/frontend/src/business/components/api/test/ApiTestConfig.vue @@ -157,9 +157,11 @@ saveTest() { this.save(() => { this.$success(this.$t('commons.save_success')); - this.$router.push({ - path: '/api/test/edit?id=' + this.test.id - }) + if (this.create) { + this.$router.push({ + path: '/api/test/edit?id=' + this.test.id + }) + } }) }, runTest() { diff --git a/frontend/src/business/components/common/head/ShowAll.vue b/frontend/src/business/components/common/head/ShowAll.vue index 09f4ebec6d..e525594fb9 100644 --- a/frontend/src/business/components/common/head/ShowAll.vue +++ b/frontend/src/business/components/common/head/ShowAll.vue @@ -14,7 +14,7 @@ methods: { changeRoute() { // 解决在列表页面点击 显示全部 无效的问题(点击显示全部后改变路由) - this.$router.push(this.index + '/all'); + this.$router.replace({path: this.index, query: {type: 'all'}}); } } } diff --git a/frontend/src/business/components/performance/head/PerformanceHeaderMenus.vue b/frontend/src/business/components/performance/head/PerformanceHeaderMenus.vue index 924a4cac97..cb0fc1c071 100644 --- a/frontend/src/business/components/performance/head/PerformanceHeaderMenus.vue +++ b/frontend/src/business/components/performance/head/PerformanceHeaderMenus.vue @@ -12,7 +12,7 @@ - + @@ -21,7 +21,7 @@ - + @@ -30,7 +30,7 @@ - + diff --git a/frontend/src/business/components/track/head/TrackHeaderMenus.vue b/frontend/src/business/components/track/head/TrackHeaderMenus.vue index 627bdbfe6d..9e351fb219 100644 --- a/frontend/src/business/components/track/head/TrackHeaderMenus.vue +++ b/frontend/src/business/components/track/head/TrackHeaderMenus.vue @@ -13,7 +13,7 @@ - + @@ -22,7 +22,7 @@ - + @@ -32,7 +32,7 @@ - +