123
This commit is contained in:
parent
447880ef21
commit
35ae29ca49
|
@ -140,7 +140,12 @@ export default {
|
|||
//获取 OA登录-token
|
||||
getSwitchAccountToken(account).then(response => {
|
||||
this.switchAccountOpen = false;
|
||||
window.open('http://localhost:3335/ssoLogin?loginid=' + account + '&token=' + response.token, '_self');
|
||||
|
||||
// 当前浏览器Location对象
|
||||
const nowLocation = window.location;
|
||||
// host => ip:port
|
||||
const host = nowLocation.host;
|
||||
window.open('http://'+host+'/ssoLogin?loginid=' + account + '&token=' + response.token, '_self');
|
||||
})
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue