-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
小程序关闭后,再扫码进入显示空白 #8103
Milestone
Comments
经调试【编译后dist目录】,第一次打开小程序后 第二次打开,_this13.updatePayloads变量值为: [] |
Closed
Chen-jj
added a commit
that referenced
this issue
Dec 14, 2020
在开发环境重新扫码,或分享后再次打开,这是小程序不会重复触发 onLaunch 完全重启整个小程序。 必须等页面都卸载后再加载新页面,否则 Taro DOM 树卸载失败,此时 web 框架判断旧 DOM 树结构和新树对比没有变化,就不再挂载,导致没有 setData,从而白屏。
9 tasks
9 tasks
Chen-jj
added a commit
that referenced
this issue
Dec 15, 2020
在开发环境重新扫码,或分享后再次打开,这是小程序不会重复触发 onLaunch 完全重启整个小程序。 必须等页面都卸载后再加载新页面,否则 Taro DOM 树卸载失败,此时 web 框架判断旧 DOM 树结构和新树对比没有变化,就不再挂载,导致没有 setData,从而白屏。
解决了吗?啥时候有更新包 |
等下个版本发布 |
我降级到vue2.x为何就可以了 |
This was referenced Dec 18, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
相关平台
微信小程序
复现仓库
https://github.com/lmm1990/taro-bug-test
小程序基础库: 未设置
使用框架: Vue 3
复现步骤
1、项目运行后微信开发者工具-》预览-》二维码预览
2、手机扫码打开小程序-》点击小程序关闭按钮
3、再扫码进入小程序,显示空白
期望结果
应该显示第一次扫码进入小程序的内容
实际结果
显示空白
环境信息
The text was updated successfully, but these errors were encountered: