소스 검색

bug修复

chenrui 3 년 전
부모
커밋
5c26ffcc4c
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  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))
       })
     },