Преглед на файлове

Merge branch 'test' into 'master'

Test

See merge request spfm-group/spfm-market-front!4
侯利飞 преди 3 години
родител
ревизия
e9f10cba84
променени са 1 файла, в които са добавени 6 реда и са изтрити 2 реда
  1. 6 2
      src/router/index.js

+ 6 - 2
src/router/index.js

@@ -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()