natasha преди 1 година
родител
ревизия
534e72f80a
променени са 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' || to.path === '/courseview' || to.path === '/Integration/courseware') {
+  if (hasToken || to.path === '/BookBrowsing' || to.path === '/courseview' || to.path === '/Integration/Courseware') {
     const config = getConfig()
-    if (config || to.path === '/BookBrowsing' || to.path === '/courseview' || to.path === '/Integration/courseware') {
+    if (config || to.path === '/BookBrowsing' || to.path === '/courseview' || to.path === '/Integration/Courseware') {
       if (to.path === '/login') {
         // if is logged in, redirect to the home page
         next({ path: '/EnterSys' })