We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
使用本地json-server时,编辑用户和创建用户操作不生效; 需要在访问request方法时,初始化options参数的headers 文件:services/user.js
export function patch(id, values) { return request(`/api/users/${id}`, { method: 'PATCH', body: JSON.stringify(values), headers: { "Content-Type": "application/json" }, }); } export function create(values) { return request('/api/users', { method: 'POST', headers: { "Content-Type": "application/json" }, body: JSON.stringify(values), }); }
使用线上json-server时,编辑用户和创建用户操作始终不生效;
The text was updated successfully, but these errors were encountered:
我也有类似的问题,删除、编辑、创建功能都不会生效。
Sorry, something went wrong.
查看 chrome 的 network,看看请求的数据是否正确,如果数据有问题改 mock,如果数据没有问题看看组件接收数据以后的操作
No branches or pull requests
使用本地json-server时,编辑用户和创建用户操作不生效;
需要在访问request方法时,初始化options参数的headers
文件:services/user.js
使用线上json-server时,编辑用户和创建用户操作始终不生效;
The text was updated successfully, but these errors were encountered: