|
@@ -1661,13 +1661,14 @@ 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?service=http%3A%2F%2F10.230.26.15%3A8000%2Fspfm%2Fsysmgr%2FssLogin%3FsysFlag%3D0"
|
|
|
+
|
|
|
+ // next()
|
|
|
} else {
|
|
|
if (window.sessionStorage.agileauthtoken == undefined) {
|
|
|
- // router.push('/login')
|
|
|
- window.location.href = "http://cas.hl.cmcc/cas?service=http%3A%2F%2F10.230.26.15%3A8000%2Fspfm%2Fsysmgr%2FssLogin%3FsysFlag%3D0"
|
|
|
-
|
|
|
+ router.push('/login')
|
|
|
next()
|
|
|
} else {
|
|
|
next()
|