|
@@ -63,7 +63,8 @@ router.beforeEach(async(to, from, next) => {
|
|
const shareCourseId = store.getters.shareCourseId
|
|
const shareCourseId = store.getters.shareCourseId
|
|
if (courseId || testId || shareCourseId) {
|
|
if (courseId || testId || shareCourseId) {
|
|
Cookies.set('isWeChat', '1')
|
|
Cookies.set('isWeChat', '1')
|
|
- store.dispatch('user/logout')
|
|
|
|
|
|
+ await store.commit('user/SET_ID', '')
|
|
|
|
+ await store.dispatch('user/logout')
|
|
next(`/login2?redirect=${to.path}`)
|
|
next(`/login2?redirect=${to.path}`)
|
|
} else {
|
|
} else {
|
|
Cookies.set('isWeChat', '2')
|
|
Cookies.set('isWeChat', '2')
|