Commit bdb73294005beb690c8b2870eb4b6f033a9b6acf
1 parent
b25ed3b4
fix(DEFECT-396): 个人中心修改用户信息后,页面数据刷新失败问题修复
Showing
1 changed file
with
6 additions
and
2 deletions
... | ... | @@ -135,8 +135,12 @@ public class YtUserController extends AbstractUserAccount { |
135 | 135 | |
136 | 136 | @PutMapping("/center") |
137 | 137 | @ApiOperation(value = "修改个人中心") |
138 | - public UserDTO updatePersonalCenter(@Validated(UpdateGroup.class) @RequestBody UserDTO userDTO) { | |
139 | - return userService.updatePersonalCenter(userDTO); | |
138 | + public UserInfoDTO updatePersonalCenter(@Validated(UpdateGroup.class) @RequestBody UserDTO userDTO) throws ThingsboardException { | |
139 | + userService.updatePersonalCenter(userDTO); | |
140 | + return userService.me( | |
141 | + getCurrentUser().getCurrentUserId(), | |
142 | + getCurrentUser().getCurrentTenantId(), | |
143 | + getCurrentUser().getRoles()); | |
140 | 144 | } |
141 | 145 | |
142 | 146 | @PostMapping | ... | ... |