feat:new
This commit is contained in:
+3
-2
@@ -83,7 +83,7 @@
|
||||
|
||||
<script>
|
||||
import {mapGetters, mapState} from 'vuex'
|
||||
import {webLoginType} from '@/sysConfig'
|
||||
import {webLoginType,ssoLogoutUrlDev} from '@/sysConfig'
|
||||
|
||||
export default {
|
||||
name: 'App',
|
||||
@@ -105,7 +105,8 @@ export default {
|
||||
roundButton: false
|
||||
}).then(() => {
|
||||
if (webLoginType != null && webLoginType === 'idm') {
|
||||
window.location.href = 'http://sso.foton.com.cn/logout?service='
|
||||
this.$store.dispatch('logout')
|
||||
window.location.href = ssoLogoutUrlDev
|
||||
// this.$http.post('logout', {}, res => {
|
||||
// window.location.href= 'http://testsso1.foton.com.cn/logout?service='
|
||||
// })
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
import axios from 'axios'
|
||||
import util from 'util'
|
||||
import { get_verify_by_instance,loginIdm,getMenu } from 'api/process'
|
||||
import { ssoLoginUrlDev,ssoLoginUrl,webLoginType,devWebUrl } from '@/sysConfig'
|
||||
import { ssoLoginUrlDev,ssoLogoutUrlDev,ssoLoginUrl,webLoginType,devWebUrl } from '@/sysConfig'
|
||||
|
||||
export default {
|
||||
name: 'LoginVerify',
|
||||
@@ -135,9 +135,10 @@
|
||||
if (res.ok) {
|
||||
this.loginNew(res)
|
||||
} else {
|
||||
// this.$message.warning('系统无权限访问')
|
||||
// window.location.href = 'http://sso.foton.com.cn/logout?service='
|
||||
window.location.href = ssoLoginUrlDev
|
||||
this.$message.warning('系统无权限访问')
|
||||
this.$store.dispatch('logout')
|
||||
// window.location.href = 'http://sso.foton.com.cn/logout?service='
|
||||
window.location.href = ssoLogoutUrlDev
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
@@ -13,6 +13,8 @@ const devIp = '10.19.11.243'
|
||||
const devInterfacePORT = '4304'
|
||||
// 配置 idm 认证
|
||||
const ssoLogin = 'http://sso.foton.com.cn/oauth2.0/authorize?client_id=app_slrs&response_type=code&redirect_uri='
|
||||
|
||||
const ssoLogout = 'http://sso.foton.com.cn/logout?service='
|
||||
// 配置 前端服务
|
||||
const devWebUrl = 'https://srms.foton.com.cn/#/'
|
||||
// webLoginType : idm (线上统一登录) 、 webLoginType: dev (测试环境登录)
|
||||
@@ -60,6 +62,7 @@ module.exports = {
|
||||
baseUrl: 'http://' + serverIP + ':' + interfacePORT,
|
||||
webLoginType: webLoginType,
|
||||
ssoLoginUrlDev: ssoLogin + devWebUrl,
|
||||
ssoLogoutUrlDev: ssoLogout + devWebUrl,
|
||||
ssoLoginUrl: ssoLogin,
|
||||
onlyOfficeUrl: onlyOfficeUrl,
|
||||
kkFileViewUrl: kkFileViewUrl,
|
||||
|
||||
Reference in New Issue
Block a user