Merge branch 'develop' into FOTON
This commit is contained in:
+3
-2
@@ -83,7 +83,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {mapGetters, mapState} from 'vuex'
|
import {mapGetters, mapState} from 'vuex'
|
||||||
import {webLoginType} from '@/sysConfig'
|
import {webLoginType,ssoLogoutUrlDev} from '@/sysConfig'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'App',
|
name: 'App',
|
||||||
@@ -105,7 +105,8 @@ export default {
|
|||||||
roundButton: false
|
roundButton: false
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
if (webLoginType != null && webLoginType === 'idm') {
|
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 => {
|
// this.$http.post('logout', {}, res => {
|
||||||
// window.location.href= 'http://testsso1.foton.com.cn/logout?service='
|
// window.location.href= 'http://testsso1.foton.com.cn/logout?service='
|
||||||
// })
|
// })
|
||||||
|
|||||||
@@ -281,13 +281,13 @@
|
|||||||
menuId: 'asfdew33',
|
menuId: 'asfdew33',
|
||||||
isChildren: true // 判断没有子菜单
|
isChildren: true // 判断没有子菜单
|
||||||
},
|
},
|
||||||
{
|
/*{
|
||||||
title: '资料中心',
|
title: '资料中心',
|
||||||
path: '/dataCenter',
|
path: '/dataCenter',
|
||||||
'icon-class': 'el-icon-s-order',
|
'icon-class': 'el-icon-s-order',
|
||||||
menuId: '',
|
menuId: '',
|
||||||
isChildren: true // 判断没有子菜单
|
isChildren: true // 判断没有子菜单
|
||||||
},
|
},*/
|
||||||
// {
|
// {
|
||||||
// title: '技术要求清单',
|
// title: '技术要求清单',
|
||||||
// path: '/skillReq',
|
// path: '/skillReq',
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
import axios from 'axios'
|
import axios from 'axios'
|
||||||
import util from 'util'
|
import util from 'util'
|
||||||
import { get_verify_by_instance,loginIdm,getMenu } from 'api/process'
|
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 {
|
export default {
|
||||||
name: 'LoginVerify',
|
name: 'LoginVerify',
|
||||||
@@ -135,9 +135,10 @@
|
|||||||
if (res.ok) {
|
if (res.ok) {
|
||||||
this.loginNew(res)
|
this.loginNew(res)
|
||||||
} else {
|
} else {
|
||||||
// this.$message.warning('系统无权限访问')
|
this.$message.warning('系统无权限访问')
|
||||||
// window.location.href = 'http://sso.foton.com.cn/logout?service='
|
this.$store.dispatch('logout')
|
||||||
window.location.href = ssoLoginUrlDev
|
// 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'
|
const devInterfacePORT = '4304'
|
||||||
// 配置 idm 认证
|
// 配置 idm 认证
|
||||||
const ssoLogin = 'http://sso.foton.com.cn/oauth2.0/authorize?client_id=app_slrs&response_type=code&redirect_uri='
|
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/#/'
|
const devWebUrl = 'https://srms.foton.com.cn/#/'
|
||||||
// webLoginType : idm (线上统一登录) 、 webLoginType: dev (测试环境登录)
|
// webLoginType : idm (线上统一登录) 、 webLoginType: dev (测试环境登录)
|
||||||
@@ -60,6 +62,7 @@ module.exports = {
|
|||||||
baseUrl: 'https://' + serverIP + ':' + interfacePORT,
|
baseUrl: 'https://' + serverIP + ':' + interfacePORT,
|
||||||
webLoginType: webLoginType,
|
webLoginType: webLoginType,
|
||||||
ssoLoginUrlDev: ssoLogin + devWebUrl,
|
ssoLoginUrlDev: ssoLogin + devWebUrl,
|
||||||
|
ssoLogoutUrlDev: ssoLogout + devWebUrl,
|
||||||
ssoLoginUrl: ssoLogin,
|
ssoLoginUrl: ssoLogin,
|
||||||
onlyOfficeUrl: onlyOfficeUrl,
|
onlyOfficeUrl: onlyOfficeUrl,
|
||||||
kkFileViewUrl: kkFileViewUrl,
|
kkFileViewUrl: kkFileViewUrl,
|
||||||
|
|||||||
Reference in New Issue
Block a user