前端添加用户信息界面

This commit is contained in:
橙子
2021-10-18 18:46:11 +08:00
parent 3e0e9a5640
commit ef10c34571
17 changed files with 793 additions and 62 deletions

View File

@@ -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();