使用flask-restful实现数据校验与序列化

This commit is contained in:
zhengxinonly
2021-06-26 03:17:29 +08:00
parent 8fba71c464
commit b8870d4c33
27 changed files with 273 additions and 533 deletions
@@ -74,7 +74,7 @@
// 修改 avatar 字段
$.ajax({
method: 'put',
url: '/users/updateAvatar',
url: '/users/avatar',
data: JSON.stringify({ avatar: result.data }),
dataType: 'json',
contentType: 'application/json',