|
|
@ -84,8 +84,12 @@ |
|
|
|
this._gLogin().then(res => { |
|
|
|
this._gLogin().then(res => { |
|
|
|
setTimeout(() => { |
|
|
|
setTimeout(() => { |
|
|
|
this.spinnerLoading = false |
|
|
|
this.spinnerLoading = false |
|
|
|
sessionStorage.setItem("sessionId", res.data) |
|
|
|
if (res.data.hasOwnProperty("sessionId")) { |
|
|
|
cookies.set('sessionId', res.data,{ path: '/' }) |
|
|
|
let sessionId=res.data.sessionId |
|
|
|
|
|
|
|
sessionStorage.setItem("sessionId", sessionId) |
|
|
|
|
|
|
|
cookies.set('sessionId', sessionId,{ path: '/' }) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (this.userName === 'admin') { |
|
|
|
if (this.userName === 'admin') { |
|
|
|
window.location.href = `${PUBLIC_PATH}/#/security/tenant` |
|
|
|
window.location.href = `${PUBLIC_PATH}/#/security/tenant` |
|
|
|
} else { |
|
|
|
} else { |
|
|
|