由于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