diff --git a/src/view/main/main.vue b/src/view/main/main.vue index f4cadcf..c221643 100755 --- a/src/view/main/main.vue +++ b/src/view/main/main.vue @@ -172,6 +172,26 @@ export default { this.setBreadCrumb(this.$route) // 设置初始语言 this.setLocal(this.$i18n.locale) + let path = location.href; + if(path.indexOf('overview')>=0){ + this.activeIndex = '1'; + } + if(path.indexOf('about')>=0){ + this.activeIndex = '2'; + } + if(path.indexOf('vip-service')>=0){ + this.activeIndex = '3'; + } + if(path.indexOf('connect')>=0){ + this.activeIndex = '4'; + } + if(path.indexOf('exchange')>=0){ + this.activeIndex = '8'; + } + if(path.indexOf('km')>=0){ + this.activeIndex = '9'; + } + } }