lsc 2 jaren geleden
bovenliggende
commit
bff5b2c732
4 gewijzigde bestanden met toevoegingen van 3 en 3 verwijderingen
  1. 0 0
      dist/index.html
  2. 1 1
      dist/report.html
  3. 0 0
      dist/static/js/app.676cf90c.js
  4. 2 2
      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.676cf90c.js


+ 2 - 2
src/permission.js

@@ -18,8 +18,8 @@ router.beforeEach(async(to, from, next) => {
   // determine whether the user has logged in
   const hasToken = getToken()
 
-  if (from.query.courseId) {
-    store.commit('app/SET_COURSEID', from.query.courseId)
+  if (to.query.courseId) {
+    store.commit('app/SET_COURSEID', to.query.courseId)
   }
   if (hasToken) {
     if (to.path === '/login') {

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