|
@@ -8,7 +8,7 @@ import getPageTitle from '@/utils/get-page-title'
|
|
|
|
|
|
NProgress.configure({ showSpinner: false }) // NProgress Configuration
|
|
|
|
|
|
-const whiteList = ['/login', '/BookBrowsing'] // no redirect whitelist
|
|
|
+const whiteList = ['/login', '/BookBrowsing', '/BookOBOCView'] // no redirect whitelist
|
|
|
|
|
|
router.beforeEach(async(to, from, next) => {
|
|
|
// start progress bar
|
|
@@ -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' || to.path === '/BookOBOCView') {
|
|
|
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' || to.path === '/BookOBOCView') {
|
|
|
if (to.path === '/login') {
|
|
|
// if is logged in, redirect to the home page
|
|
|
next({ path: '/EnterSys' })
|