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

[Bug Report] uploader拍照使用wx.chooseImage部分iOS设备会造成刷新页面 #5343

Closed
masicheng opened this issue Apr 24, 2023 · 5 comments

Comments

@masicheng
Copy link
Contributor

重现链接

https://developers.weixin.qq.com/s/ECsYmImk7zHc

Vant Weapp 版本

1.10.16

描述一下你遇到的问题。

uploader拍照chooseImage部分iOS设备会造成刷新页面

重现步骤

填写form表单后拍照会reload当前页面,导致已填写的值丢失

设备/浏览器

iphone12

@masicheng
Copy link
Contributor Author

切换成wx.chooseMedia可以解决

@landluck
Copy link
Contributor

切换成wx.chooseMedia可以解决

accept 改为 media 并通过 media-type 限制为 ['image'] 可以解决,刷新问题是微信原生问题,组件库暂时无法解决

@masicheng
Copy link
Contributor Author

可以解决呀,目前type=image时组件库调用的是wx.chooseImage,但是该API已经停止维护了,我测试过替换成wx.chooseMedia拍照就不会存在刷新的问题

@landluck
Copy link
Contributor

可以提个 PR ?

@landluck
Copy link
Contributor

landluck commented May 4, 2023

v1.10.17 已发布

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants