zhouwx
2025-07-09 0524bcc28832ea9d55e7d5fbc8438bc2f7d59097
src/store/modules/user.js
@@ -10,6 +10,7 @@
      token: getToken(),
      id: '',
      name: '',
      companyId: null,
      avatar: '',
      roles: [],
      permissions: []
@@ -46,6 +47,7 @@
            }
            this.id = user.userId
            this.name = user.userName
            this.companyId = user.companyId
            this.avatar = avatar
            Cookies.set('userInfo',JSON.stringify(user))
            resolve(res)