diff --git a/frontend/src/business/components/api/router.js b/frontend/src/business/components/api/router.js index ab570f38ac..3b32bbc216 100644 --- a/frontend/src/business/components/api/router.js +++ b/frontend/src/business/components/api/router.js @@ -3,7 +3,6 @@ import MsProject from "@/business/components/settings/project/MsProject"; export default { path: "/api", name: "api", - redirect: "/api/home", components: { content: () => import('@/business/components/api/ApiTest') }, diff --git a/frontend/src/business/components/common/head/HeaderTopMenus.vue b/frontend/src/business/components/common/head/HeaderTopMenus.vue index 57907d9c7a..a8fb2db8eb 100644 --- a/frontend/src/business/components/common/head/HeaderTopMenus.vue +++ b/frontend/src/business/components/common/head/HeaderTopMenus.vue @@ -9,17 +9,17 @@ router> - {{$t('test_track.test_track')}} + {{ $t('test_track.test_track') }} - - {{$t('commons.api')}} + + {{ $t('commons.api') }} - {{$t('commons.performance')}} + {{ $t('commons.performance') }} - {{$t('commons.system_setting')}} + {{ $t('commons.system_setting') }} @@ -47,7 +47,18 @@ }, methods: { handleSelect(index) { + console.log(index) this.activeIndex = index + + }, + active() { + if (this.activeIndex === '/api') { + if (this.$store.state.switch.value == 'new') { + window.location.href = "/#/api/home"; + } else if (this.$store.state.switch.value == 'old') { + window.location.href = "/#/api/home_obsolete"; + } + } } } } diff --git a/frontend/src/business/components/xpack b/frontend/src/business/components/xpack index d39dafaf84..010ad7a5f0 160000 --- a/frontend/src/business/components/xpack +++ b/frontend/src/business/components/xpack @@ -1 +1 @@ -Subproject commit d39dafaf84b9c7a56cb51f2caf67dd7dfde5938c +Subproject commit 010ad7a5f072a5e9d368c756a2473bbd20781433