lsc 2 年之前
父節點
當前提交
2c5c79fcc6
共有 4 個文件被更改,包括 3 次插入3 次删除
  1. 0 0
      dist/index.html
  2. 1 1
      dist/report.html
  3. 0 0
      dist/static/js/app.ac69d65b.js
  4. 2 2
      src/permission.js

文件差異過大導致無法顯示
+ 0 - 0
dist/index.html


文件差異過大導致無法顯示
+ 1 - 1
dist/report.html


文件差異過大導致無法顯示
+ 0 - 0
dist/static/js/app.ac69d65b.js


+ 2 - 2
src/permission.js

@@ -19,7 +19,7 @@ router.beforeEach(async(to, from, next) => {
   const hasToken = getToken()
 
   if (to.query.courseid) {
-    await store.commit('app/SET_COURSEID', to.query.courseid)
+    await store.commit('SET_COURSEID', to.query.courseid)
   }
   if (hasToken) {
     if (to.path === '/login') {
@@ -34,7 +34,7 @@ router.beforeEach(async(to, from, next) => {
       if (userinfo) {
         const courseId = store.getters.courseId
 
-        next({ ...to, query: { courseid: courseId }})
+        next({ ...to, query: { courseid: courseId } })
       } else {
         try {
           // 获取用户信息

部分文件因文件數量過多而無法顯示