|
|
@ -255,7 +255,6 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 处理登录成功 |
|
|
|
// 处理登录成功 |
|
|
|
setLogin() { |
|
|
|
setLogin() { |
|
|
|
window.opener && window.opener.location.reload() // 刷新官网 |
|
|
|
|
|
|
|
util.local.set(Setting.tokenKey, this.token, Setting.tokenExpires) |
|
|
|
util.local.set(Setting.tokenKey, this.token, Setting.tokenExpires) |
|
|
|
// 查询是否是客户,如果是客户,则弹出选择端的页面去选择跳转到哪个端 |
|
|
|
// 查询是否是客户,如果是客户,则弹出选择端的页面去选择跳转到哪个端 |
|
|
|
this.$get(this.api.isClient).then(res => { |
|
|
|
this.$get(this.api.isClient).then(res => { |
|
|
@ -265,6 +264,8 @@ export default { |
|
|
|
userName && this.SET_INFO({ |
|
|
|
userName && this.SET_INFO({ |
|
|
|
userName |
|
|
|
userName |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
window.opener && window.opener.location.reload() // 刷新官网 |
|
|
|
|
|
|
|
util.local.set(Setting.storeKey,this.$store.state) |
|
|
|
}).catch(res => {}) |
|
|
|
}).catch(res => {}) |
|
|
|
// 查询schoolId |
|
|
|
// 查询schoolId |
|
|
|
this.$post(this.api.getSchoolIdByToken).then(res => { |
|
|
|
this.$post(this.api.getSchoolIdByToken).then(res => { |
|
|
|