|
@@ -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' })
|