{"size": 722, "ext": "js", "max_stars_repo_path": "src/router.js", "max_stars_repo_name": "FengyuWang123/project-purchase", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/router.js", "max_issues_repo_name": "FengyuWang123/project-purchase", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/router.js", "max_forks_repo_name": "FengyuWang123/project-purchase", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 32.8181818182, "max_line_length": 69, "alphanum_fraction": 0.6869806094}
import VueRouter from 'vue-router'

// 导入对应的路由组件
import HomeContainer from './components/tabbar/homeContainer.vue'
import MemberContainer from './components/tabbar/memberContainer.vue'
import CartContainer from './components/tabbar/cartContainer.vue'
import SearchContainer from './components/tabbar/searchContainer.vue'



var router = new VueRouter({
    routes: [   // 配置路由规则
        { path: '/', redirect: '/home' },
        { path: '/home', component: HomeContainer },
        { path: '/member', component: MemberContainer },
        { path: '/cart', component: CartContainer },
        { path: '/search', component: SearchContainer },
    ],
    linkActiveClass: 'mui-active' // 覆盖默认的路由高亮的类
})

export default router