This commit is contained in:
xd 2024-05-16 21:16:14 +08:00
parent 447880ef21
commit 35ae29ca49
1 changed files with 6 additions and 1 deletions

View File

@ -140,7 +140,12 @@ export default {
// OA-token // OA-token
getSwitchAccountToken(account).then(response => { getSwitchAccountToken(account).then(response => {
this.switchAccountOpen = false; 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');
}) })
} }
}) })