WangHan
2024-12-19 391a9156a907337531c5e6179f35ab4a26b39d29
获取用户信息修改
1个文件已修改
9 ■■■■ 已修改文件
admin-web/src/views/systemSetting/user/profile/userInfo.vue 9 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
admin-web/src/views/systemSetting/user/profile/userInfo.vue
@@ -45,8 +45,8 @@
    ])
  },
  created(){
    this.user = JSON.parse(JSON.stringify(this.userInfo))
    console.log(this.user)
    // 获取登录用户信息
    this.getUserInfo()
  },
  data() {
    return {
@@ -76,6 +76,11 @@
    };
  },
  methods: {
    getUserInfo() {
      getCurInfo().then(res => {
        this.user = res
      })
    },
    getHead(){
      return this.baseUrl + this.user.avatar
    },