修复头像上传不支持 PUT 类型的方法
This commit is contained in:
parent
0930c1ff73
commit
0145b5abee
@ -96,7 +96,7 @@ public class UserProfileController {
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@PostMapping("/update-avatar")
|
||||
@RequestMapping(value = "/update-avatar", method = {RequestMethod.POST, RequestMethod.PUT}) // 解决 uni-app 不支持 Put 上传文件的问题
|
||||
@Operation(summary = "上传用户个人头像")
|
||||
public CommonResult<String> updateUserAvatar(@RequestParam("avatarFile") MultipartFile file) throws Exception {
|
||||
if (file.isEmpty()) {
|
||||
|
Loading…
Reference in New Issue
Block a user