parent
66c01949af
commit
3e4b38e394
|
@ -5,7 +5,10 @@
|
||||||
<el-col :span="14">
|
<el-col :span="14">
|
||||||
<el-menu class="header-menu" :unique-opened="true" mode="horizontal" router :default-active='$route.path'>
|
<el-menu class="header-menu" :unique-opened="true" mode="horizontal" router :default-active='$route.path'>
|
||||||
|
|
||||||
<el-menu-item :index="'/api/home'">
|
<el-menu-item v-show="$store.state.switch.value=='new'" :index="'/api/home'">
|
||||||
|
{{ $t("i18n.home") }}
|
||||||
|
</el-menu-item>
|
||||||
|
<el-menu-item v-show="$store.state.switch.value=='old'" :index="'/api/home_obsolete'">
|
||||||
{{ $t("i18n.home") }}
|
{{ $t("i18n.home") }}
|
||||||
</el-menu-item>
|
</el-menu-item>
|
||||||
|
|
||||||
|
|
|
@ -11,9 +11,13 @@ export default {
|
||||||
{
|
{
|
||||||
path: 'home',
|
path: 'home',
|
||||||
name: 'fucHome',
|
name: 'fucHome',
|
||||||
// component: () => import('@/business/components/api/home/ApiTestHome'),
|
|
||||||
component: () => import('@/business/components/api/homepage/ApiTestHomePage'),
|
component: () => import('@/business/components/api/homepage/ApiTestHomePage'),
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: 'home_obsolete',
|
||||||
|
name: 'fucHome',
|
||||||
|
component: () => import('@/business/components/api/home/ApiTestHome'),
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: "test/:type",
|
path: "test/:type",
|
||||||
name: "ApiTestConfig",
|
name: "ApiTestConfig",
|
||||||
|
|
|
@ -77,7 +77,12 @@
|
||||||
this.isReadOnly = !this.isReadOnly
|
this.isReadOnly = !this.isReadOnly
|
||||||
this.$store.commit('setFlag', this.isReadOnly);
|
this.$store.commit('setFlag', this.isReadOnly);
|
||||||
this.$store.commit('setValue', item);
|
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";
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue