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