clay commit : info
This commit is contained in:
@@ -4,7 +4,6 @@ import { Message } from 'element-ui'
|
||||
import NProgress from 'nprogress'
|
||||
import 'nprogress/nprogress.css'
|
||||
import { getToken } from '@/utils/auth'
|
||||
import axios from "axios";
|
||||
|
||||
NProgress.configure({ showSpinner: false })
|
||||
|
||||
@@ -62,9 +61,9 @@ router.beforeEach((to, from, next) => {
|
||||
//
|
||||
// })
|
||||
// NProgress.done()
|
||||
// if (!defaultSettings.casEnable) {
|
||||
// next(`/login?redirect=${to.fullPath}`) // 否则全部重定向到登录页
|
||||
// }
|
||||
if (!defaultSettings.casEnable) {
|
||||
next(`/login?redirect=${to.fullPath}`) // 否则全部重定向到登录页
|
||||
}
|
||||
//开启cas
|
||||
if (defaultSettings.casEnable) {
|
||||
window.location.href = defaultSettings.casloginUrl // 否则全部重定向到登录页
|
||||
|
||||
Reference in New Issue
Block a user