lsc 1 周之前
父節點
當前提交
e6d8f88504
共有 4 個文件被更改,包括 3 次插入2 次删除
  1. 0 0
      dist/index.html
  2. 1 1
      dist/report.html
  3. 0 0
      dist/static/js/app.9bd44de6.js
  4. 2 1
      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.9bd44de6.js


+ 2 - 1
src/permission.js

@@ -63,7 +63,8 @@ router.beforeEach(async(to, from, next) => {
           const shareCourseId = store.getters.shareCourseId
           if (courseId || testId || shareCourseId) {
             Cookies.set('isWeChat', '1')
-            store.dispatch('user/logout')
+            await store.commit('user/SET_ID', '')
+            await store.dispatch('user/logout')
             next(`/login2?redirect=${to.path}`)
           } else {
             Cookies.set('isWeChat', '2')

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