|
@@ -75,6 +75,9 @@ router.beforeEach(async(to, from, next) => {
|
|
|
console.log('userinfo', userinfo)
|
|
|
// console.log('to', {...to} )
|
|
|
if (userinfo) {
|
|
|
+ const data = await store.dispatch('user/getInfo')
|
|
|
+ await store.commit('user/SET_USERINFO', data)
|
|
|
+
|
|
|
const courseId = to.query.courseid
|
|
|
const testId = to.query.testid
|
|
|
const shareCourseId = to.query.shareCourseId
|