前端添加用户信息界面
This commit is contained in:
@@ -5,7 +5,6 @@ import store from './store/index'
|
||||
|
||||
router.beforeEach((to, from, next) => {
|
||||
const user = store.state.user.user; //获取是有user
|
||||
console.log(user)
|
||||
if (!user) { //如果没有登入
|
||||
if (to.path == '/login/' || to.path == '/register/' || to.path == '/reset_password/' || to.path == '/qq/') {
|
||||
next();
|
||||
|
||||
Reference in New Issue
Block a user