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
@nutui/nutui-taro
在同一个页面提交数据和文件时 数据提交后返回一个id 这些文件需要和这个id关联 但是数据提交后修改data再执行submit 接口中的formdata数据不会发生修改
希望可以改成这样的 data改变后formdata可以改变 其实这样也能实现但是很变扭 const beforeXhrUpload = (xhr, options) => { const { url, taroFilePath: filePath, fileType, header, name } = options xhr({ url, filePath, fileType, header, name, formData: data, success: (res) => { options.onSuccess.call(options, res, options) success(res) }, fail: (err) => { console.log(err) } }) }
const beforeXhrUpload = (xhr, options) => { const { url, taroFilePath: filePath, fileType, header, name } = options xhr({ url, filePath, fileType, header, name, formData: data, success: (res) => { options.onSuccess.call(options, res, options) success(res) }, fail: (err) => { console.log(err) } }) }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
NutUI 包名
@nutui/nutui-taro
这个功能解决了什么问题?
在同一个页面提交数据和文件时
数据提交后返回一个id
这些文件需要和这个id关联
但是数据提交后修改data再执行submit 接口中的formdata数据不会发生修改
你期望的组件设计是怎样的?
希望可以改成这样的 data改变后formdata可以改变 其实这样也能实现但是很变扭
const beforeXhrUpload = (xhr, options) => { const { url, taroFilePath: filePath, fileType, header, name } = options xhr({ url, filePath, fileType, header, name, formData: data, success: (res) => { options.onSuccess.call(options, res, options) success(res) }, fail: (err) => { console.log(err) } }) }
The text was updated successfully, but these errors were encountered: