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('/'); } // console.log(to.meta); Util.title(to.meta.title); next(); });