소스 검색

add url

master
meixinbin 2 년 전
부모
커밋
af87af4b91
1개의 변경된 파일20개의 추가작업 그리고 0개의 파일을 삭제
  1. +20
    -0
      src/view/main/main.vue

+ 20
- 0
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';
}

}
}
</script>


불러오는 중...
취소
저장