lsc 2 anos atrás
pai
commit
bff5b2c732
4 arquivos alterados com 3 adições e 3 exclusões
  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

Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
dist/index.html


Diferenças do arquivo suprimidas por serem muito extensas
+ 1 - 1
dist/report.html


Diferenças do arquivo suprimidas por serem muito extensas
+ 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') {

Alguns arquivos não foram mostrados porque muitos arquivos mudaram nesse diff