Commit 47a0cb73 by 李伟康

commit

1 parent cec2eaae
......@@ -48,13 +48,8 @@ export default {
'',
() => {
let loginToken = this.getLocalStorage('dj_scrm_loginToken')
let { merchantId, accountName , status} = e
let { merchantId, accountName, status } = e
let loginAccount = accountName
if (status != 2) {
this.hideLoading()
this.showToast('该账户已到期')
return
}
ssoApi
.selectAccount({
loginAccount,
......@@ -66,6 +61,10 @@ export default {
this.removeLocalStorage('dj_scrm_loginToken')
if (code == '0') {
if (data) {
if (data.status != 2) {
this.$router.replace({ name: 'common.overdue' })
return
}
let { lastPath } = this.getQuery()
let redirect_uri = this.getLocalStorage('dj_scrm_redirect_uri')
this.setLocalStorage('dj_scrm_userInfo', data)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!