浏览代码

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