!35 头像上传,VUE3后端界面中使用的是request.upload,对应的方法是post

Merge pull request !35 from 让无线电飞BG8GLR/N/A
This commit is contained in:
芋道源码
2023-06-17 06:25:08 +00:00
committed by Gitee

View File

@@ -96,7 +96,7 @@ public class UserProfileController {
return success(true);
}
@PutMapping("/update-avatar")
@PostMapping("/update-avatar")
@Operation(summary = "上传用户个人头像")
public CommonResult<String> updateUserAvatar(@RequestParam("avatarFile") MultipartFile file) throws Exception {
if (file.isEmpty()) {