lsc 3 days ago
parent
commit
5ad87195b4
4 changed files with 4 additions and 1 deletions
  1. 0 0
      dist/index.html
  2. 1 1
      dist/report.html
  3. 0 0
      dist/static/js/app.1f0124ad.js
  4. 3 0
      src/permission.js

File diff suppressed because it is too large
+ 0 - 0
dist/index.html


File diff suppressed because it is too large
+ 1 - 1
dist/report.html


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.1f0124ad.js


+ 3 - 0
src/permission.js

@@ -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

Some files were not shown because too many files changed in this diff