diff --git a/frontend/src/business/components/api/head/ApiHeaderMenus.vue b/frontend/src/business/components/api/head/ApiHeaderMenus.vue index 10dae0f5fa..9d771ecbc3 100644 --- a/frontend/src/business/components/api/head/ApiHeaderMenus.vue +++ b/frontend/src/business/components/api/head/ApiHeaderMenus.vue @@ -5,7 +5,10 @@ - + + {{ $t("i18n.home") }} + + {{ $t("i18n.home") }} diff --git a/frontend/src/business/components/api/router.js b/frontend/src/business/components/api/router.js index 0016bdb474..ab570f38ac 100644 --- a/frontend/src/business/components/api/router.js +++ b/frontend/src/business/components/api/router.js @@ -11,9 +11,13 @@ export default { { path: 'home', name: 'fucHome', - // component: () => import('@/business/components/api/home/ApiTestHome'), component: () => import('@/business/components/api/homepage/ApiTestHomePage'), }, + { + path: 'home_obsolete', + name: 'fucHome', + component: () => import('@/business/components/api/home/ApiTestHome'), + }, { path: "test/:type", name: "ApiTestConfig", diff --git a/frontend/src/business/components/common/head/HeaderUser.vue b/frontend/src/business/components/common/head/HeaderUser.vue index b77a158c10..464f5139b2 100644 --- a/frontend/src/business/components/common/head/HeaderUser.vue +++ b/frontend/src/business/components/common/head/HeaderUser.vue @@ -77,7 +77,12 @@ this.isReadOnly = !this.isReadOnly this.$store.commit('setFlag', this.isReadOnly); this.$store.commit('setValue', item); - window.location.href = "/#/api/home"; + if(item=="old"){ + window.location.href = "/#/api/home_obsolete"; + }else { + window.location.href = "/#/api/home"; + } + } } }