mqd 3 gadi atpakaļ
vecāks
revīzija
46d1982e5a
1 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  1. 3 1
      src/router/index.js

+ 3 - 1
src/router/index.js

@@ -1665,8 +1665,10 @@ router.beforeEach((to, from, 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.location.href.indexOf('?agileauthtoken=') == -1) {
+        // if (window.location.href.indexOf('?agileauthtoken=') == -1) {
+        if (window.sessionStorage.agileauthtoken == undefined) {
             window.location.href = "http://10.230.26.15:8000/spfm/sysmgr/ssLogin?sysFlag=0";
+            //window.location.href = "http://cas.hl.cmcc/cas/login?service=?service=http%3A%2F%2F10.230.26.15%3A8000%2Fspfm%2Fsysmgr%2FssLogin%3FsysFlag%3D0"
         } else {
             next()
         }