whychdw
2019-07-05 7ab97c4ada45550abc7f440d60549b249726a9ff
src/main.js
@@ -21,13 +21,9 @@
router.beforeEach((to, from, next) => {
    iView.LoadingBar.start();
    if(store.state.login || to.path=='/') {     // 判断是否登录
        // console.log(to.meta);
        Util.title(to.meta.title);
        next();
    }else{
        next('/');
    }
    
});