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

修改路由,默认登录时直接访问CAS页面

syr преди 3 години
родител
ревизия
eec9240b34
променени са 1 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 3 1
      src/router/index.js

+ 3 - 1
src/router/index.js

@@ -1647,7 +1647,9 @@ router.beforeEach((to, from, next) => {
         next()
     } else {
         if (window.sessionStorage.agileauthtoken == undefined) {
-            router.push('/login')
+            // 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"
+
             next()
         } else {
             next()