jbb il y a 2 ans
Parent
commit
509d2ec98e
2 fichiers modifiés avec 4 ajouts et 1 suppressions
  1. 1 1
      .env.production
  2. 3 0
      src/store/modules/user.js

+ 1 - 1
.env.production

@@ -1,5 +1,5 @@
 NODE_ENV=production
 #VUE_APP_API_BASE_URL=http://220.191.168.86:18001/jeecg-boot
 VUE_APP_API_BASE_URL=http://220.191.168.86:18003/jeecg-boot
-VUE_APP_CAS_BASE_URL=http://localhost:8888/cas
+VUE_APP_CAS_BASE_URL=http://220.191.168.86:18005/cas
 VUE_APP_ONLINE_BASE_URL=http://fileview.jeecg.com/onlinePreview

+ 3 - 0
src/store/modules/user.js

@@ -176,6 +176,9 @@ const user = {
           if (process.env.VUE_APP_SSO == 'true') {
             let sevice = 'http://' + window.location.host + '/'
             let serviceUrl = encodeURIComponent(sevice)
+            console.log(process.env.VUE_APP_CAS_BASE_URL)
+            debugger
+            // window.location.href = 'http://220.191.168.86:18005/cas/logout?service=' + serviceUrl
             window.location.href = process.env.VUE_APP_CAS_BASE_URL + '/logout?service=' + serviceUrl
           }
           resolve()