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

uniapp 回退到上一个页面偶现当前页面无法释放 #458

Open
JQHxx opened this issue Jul 18, 2023 · 3 comments
Open

uniapp 回退到上一个页面偶现当前页面无法释放 #458

JQHxx opened this issue Jul 18, 2023 · 3 comments

Comments

@JQHxx
Copy link

JQHxx commented Jul 18, 2023

问题描述
uniapp 回退到上一个页面偶现当前页面无法释放

复现步骤
1、场景:使用uniapp 开发h5
2、页面回退 uni.navigateBack({ delta: 1});
3、页面生命周期 onUnload 并没有触发,子组件的beforeDestroy也没有触发

预期结果
生命周期正常

实际结果
页面的资源一直在占用用,无法释放

系统信息:

  • 发行平台: [如 微信小程序、H5平台、5+ App等]
  • 操作系统 [如 iOS 12.1.2、Android 7.0]
  • HBuilderX版本 [如使用HBuilderX,则需提供 HBuilderX 版本号] 版本号:3.8.4.20230531
  • 项目创建方法 HBuilderX 创建的uniapp
  • 设备信息 [imac 谷歌浏览器:版本 114.0.5735.198(正式版本) (x86_64)、Safari浏览器:版本16.4.1 (17615.1.26.101.10, 17615)]
  • uni-simple-router版本 [如 v2.0.7]

补充信息
[可选]
[根据你的分析,出现这个问题的原因可能在哪里?]

@SilurianYang
Copy link
Owner

请使用 v3 版本,开源版目前处于搁置状态,访问v3 版本文档

@jrt324
Copy link

jrt324 commented Aug 2, 2023

v3版本能用在 uniapp 基于vue2的项目里面吗?

@SilurianYang
Copy link
Owner

v3版本能用在 uniapp 基于vue2的项目里面吗?

不支持 v3版本只支持在vue3+vite的环境中使用

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

No branches or pull requests

3 participants