Browse Source

bug修复

chenrui 3 years ago
parent
commit
5c26ffcc4c
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/components/tools/UserMenu.vue

+ 5 - 0
src/components/tools/UserMenu.vue

@@ -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))
       })
     },