!35 头像上传,VUE3后端界面中使用的是request.upload,对应的方法是post
Merge pull request !35 from 让无线电飞BG8GLR/N/A
This commit is contained in:
commit
0930c1ff73
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user