clay commit : info

This commit is contained in:
clay
2022-09-09 00:38:57 +08:00
parent a186667478
commit 362b39a1a8
4 changed files with 8 additions and 8 deletions

View File

@@ -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 // 否则全部重定向到登录页