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

微信小程序热启动情况下进入页面白屏 #8119

Closed
foyel opened this issue Nov 24, 2020 · 10 comments
Closed

微信小程序热启动情况下进入页面白屏 #8119

foyel opened this issue Nov 24, 2020 · 10 comments
Assignees
Labels
F-vue3 Framework - Vue 3 T-weapp Target - 编译到微信小程序 V-3 Version - 3.x
Milestone

Comments

@foyel
Copy link

foyel commented Nov 24, 2020

相关平台

微信小程序

小程序基础库: 2.13.2
使用框架: Vue 3

复现步骤

1、通过微信开发者工具上传代码 -> 小程序后台查询体验版二维码
2、手机扫码打开小程序 -> 点击小程序关闭按钮
3、再扫码进入小程序,显示空白

注:经查询应该是热启动会有白屏的问题,发现在线上的小程序热启动进入也会白屏

期望结果

页面正常

实际结果

页面空白

环境信息

Taro CLI 3.1.0-beta.1 environment info:
    System:
      OS: macOS 10.15.7
      Shell: 5.7.1 - /bin/zsh
    Binaries:
      Node: 14.4.0 - /usr/local/bin/node
      npm: 6.14.8 - /usr/local/bin/npm
    npmPackages:
      @tarojs/components: 3.1.0-beta.1 => 3.1.0-beta.1
      @tarojs/mini-runner: 3.1.0-beta.1 => 3.1.0-beta.1
      @tarojs/runtime: 3.1.0-beta.1 => 3.1.0-beta.1
      @tarojs/taro: 3.1.0-beta.1 => 3.1.0-beta.1
      @tarojs/webpack-runner: 3.1.0-beta.1 => 3.1.0-beta.1
      babel-preset-taro: 3.1.0-beta.1 => 3.1.0-beta.1
      eslint-config-taro: 3.1.0-beta.1 => 3.1.0-beta.1
    npmGlobalPackages:
      typescript: 3.8.3

我在created、 mounted等生命周期方法里添加打印日志,发现第一次进入渲染正常的是有打印日志的,页面空白的没有打印,说明应该没有执行

511606212029_ pic

501606212028_ pic

@taro-bot2 taro-bot2 bot added F-vue3 Framework - Vue 3 T-weapp Target - 编译到微信小程序 V-3 Version - 3.x labels Nov 24, 2020
@foyel foyel changed the title 微信小程序扫描预览版二维码第二次进入页面白屏 微信小程序热启动情况下进入页面白屏 Nov 24, 2020
@foyel
Copy link
Author

foyel commented Nov 24, 2020

@Chen-jj 麻烦帮忙看下,现在我们的小程序线上有这个问题,应该如何解决

@lmm1990
Copy link

lmm1990 commented Nov 25, 2020

和这个是一个问题
#8103

@foyel
Copy link
Author

foyel commented Dec 3, 2020

请问下这个问题什么时候能解决啊

@pecopeco
Copy link

急急急

@lmm1990
Copy link

lmm1990 commented Dec 17, 2020

@pecopeco 已经修复了。https://github.com/NervJS/taro/milestone/28?closed=1
版本:3.0.19 会发布

@mokinzhao
Copy link

很急明天要上线了,希望大佬赶紧发包

@pecopeco
Copy link

很急明天要上线了,希望大佬赶紧发包

暂时可以使用手动销毁dom再重建的方式触发页面重载

@Chen-jj
Copy link
Contributor

Chen-jj commented Dec 17, 2020

@mokinzhao 线上用户不存在这种热启动的情况吧,只会打开一次,后续打开不会触发页面重载。一般在调试时才会触发这种情况,扫码再扫码、分享后再从分享入口进入。

@Chen-jj Chen-jj added this to the 3.0.19 milestone Dec 21, 2020
@Chen-jj Chen-jj closed this as completed Dec 21, 2020
@weicheng-git
Copy link

所以解决了吗,我也遇到这个问题了

@lmm1990
Copy link

lmm1990 commented Jan 22, 2021

@weicheng-git 已经解决了,taro升级到最新版本即可

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-vue3 Framework - Vue 3 T-weapp Target - 编译到微信小程序 V-3 Version - 3.x
Projects
None yet
Development

No branches or pull requests

6 participants