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