@@ -37,6 +37,7 @@ router.beforeEach(async(to, from, next) => {
if (hasToken) {
if (to.path === '/login' || to.path === '/login2') {
// if is logged in, redirect to the home page
+ store.commit('user/SET_ID', hasToken)
if(isWeChat == '1'){
next({ path: '/' })
}else {