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

荣耀v10出现间歇性不显示二维码 #8

Open
xyytwz opened this issue May 25, 2019 · 3 comments
Open

荣耀v10出现间歇性不显示二维码 #8

xyytwz opened this issue May 25, 2019 · 3 comments

Comments

@xyytwz
Copy link

xyytwz commented May 25, 2019

二维码被封装到组件种,组件包含其他内容,A页面到B页面,B页面引用组件加载二维码,显示正常,然后返回A页面,再重新进入B页面,则有时候会不显示二维码

@tomfriwel
Copy link
Owner

你是在onLoad就开始调用绘制二维码的方法了吗?如果是的话,试试放在onReady里。

@xyytwz
Copy link
Author

xyytwz commented May 27, 2019

放在onReady中后情况好了些,不像之前间隔性的不显示很频繁,现在也是连续返回进入多次后才会出现不显示的情况

@xiuluobo
Copy link

xiuluobo commented Dec 5, 2019

加入了setTimeout更好了一写。只有小几率有问题。

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

3 participants