mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-27 01:32:03 +08:00
由于uni-app的上传图片uni.uploadFile目前仅支持POST方法,所以将PUT改为POST
This commit is contained in:
parent
93352b5386
commit
0d08ed26a5
@ -40,7 +40,7 @@ public class AppUserController {
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@PutMapping("/update-avatar")
|
||||
@PostMapping("/update-avatar")
|
||||
@ApiOperation("修改用户头像")
|
||||
@PreAuthenticated
|
||||
public CommonResult<String> updateUserAvatar(@RequestParam("avatarFile") MultipartFile file) throws Exception {
|
||||
|
Loading…
Reference in New Issue
Block a user