Skip to content
New issue

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

[FR]: Uploader 上传使用自定义上传,服务器返回数据应该怎么操作? #3164

Open
490626721 opened this issue Aug 9, 2024 · 0 comments
Labels
Feature Request 新功能请求

Comments

@490626721
Copy link

NutUI 包名

@nutui/nutui-taro

这个功能解决了什么问题?

自定义上传官方文档中
success(response: { errMsg; statusCode; data }) { if (options.xhrState == response.statusCode) { options.onSuccess?.(response, options); } else { options.onFailure?.(response, options); } },
上传成功了表单中对应的file-list是本地url路径
我使用options.onSuccess?.(responseData.data[0], options, responseData.data[0]);
任然无法更改表单中的v-model:file-list里的数据,
1723192893574

你期望的组件设计是怎样的?

我希望正确响应服务器返回的数据,自定义name、url;或者加入自定义数据

@490626721 490626721 added the Feature Request 新功能请求 label Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request 新功能请求
Projects
None yet
Development

No branches or pull requests

1 participant