|
@@ -116,11 +116,16 @@ export default {
|
|
|
},
|
|
|
// 切换角色
|
|
|
changeRoles (sn) {
|
|
|
+ console.log('888')
|
|
|
return this.SetOrgSn(sn).then(() => {
|
|
|
// 重新登录
|
|
|
const params = { username: '', password: '' }
|
|
|
return this.Login(params).then(() => {
|
|
|
+ console.log(111)
|
|
|
+ this.$router.push({ path: '/home' })
|
|
|
+ console.log(222)
|
|
|
window.location.reload() // 刷新页面
|
|
|
+ console.log(333)
|
|
|
}).catch(err => this.requestFailed(err))
|
|
|
})
|
|
|
},
|