|
@@ -1661,11 +1661,15 @@ const router = new VueRouter({
|
|
|
})
|
|
|
let menuList = [];
|
|
|
router.beforeEach((to, from, next) => {
|
|
|
+ console.log("====token===="+window.sessionStorage.agileauthtoken)
|
|
|
if (to.name == 'login') {
|
|
|
- next()
|
|
|
+
|
|
|
+ window.location.href = "http://cas.hl.cmcc/cas/login?service=?service=http%3A%2F%2F10.230.26.15%3A8000%2Fspfm%2Fsysmgr%2FssLogin%3FsysFlag%3D0"
|
|
|
+
|
|
|
+ // next()
|
|
|
} else {
|
|
|
if (window.sessionStorage.agileauthtoken == undefined) {
|
|
|
- router.push('/login')
|
|
|
+ router.push('/login')
|
|
|
next()
|
|
|
} else {
|
|
|
next()
|