소스 검색

临时链接

natasha 3 년 전
부모
커밋
01fc426512
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/permission.js

+ 2 - 2
src/permission.js

@@ -18,9 +18,9 @@ router.beforeEach(async(to, from, next) => {
         //next();
     NProgress.done()
     const hasToken = getToken()
-    if (hasToken || to.path === '/BookBrowsing') {
+    if (hasToken || to.path === '/BookBrowsing' || to.path === '/courseview') {
         let config = getConfig();
-        if (config || to.path === '/BookBrowsing') {
+        if (config || to.path === '/BookBrowsing' || to.path === '/courseview') {
             if (to.path === '/login') {
                 // if is logged in, redirect to the home page
                 next({ path: '/EnterSys' })