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

Taro.reLaunch 跳转页面不会清空已打开的页面,只会清除上一个页面 #8347

Closed
chenlimao opened this issue Dec 22, 2020 · 2 comments · Fixed by #10906
Closed
Labels
F-vue3 Framework - Vue 3 T-h5 Target - 编译到 H5 V-3 Version - 3.x

Comments

@chenlimao
Copy link

相关平台

H5

复现仓库

https://github.com
浏览器版本: Chrome 87
使用框架: Vue 3

复现步骤

登录成功后进去个人中心页面,打开设置页退出登录,跳转到首页,点击跳转到个人中心页,页面还是存在,不会刷新提示登录

期望结果

  1. 清除全部页面,点击跳转到个人中心页刷新页面,提示登录

实际结果

个人中心页未清除,已缓存,再次跳转不会刷新页面,要手动刷新才提示登录

环境信息

 Taro CLI 3.0.16 environment info:
    System:
      OS: Windows 10
    Binaries:
      Node: 14.6.0 - D:\nodejs\node.EXE
      Yarn: 1.22.4 - D:\Yarn\bin\yarn.CMD
      npm: 6.14.6 - D:\nodejs\npm.CMD
@taro-bot2 taro-bot2 bot added F-vue3 Framework - Vue 3 T-h5 Target - 编译到 H5 V-3 Version - 3.x labels Dec 22, 2020
@YoursOwen
Copy link

同,官方能修复下这个问题吗

@SyMind
Copy link
Member

SyMind commented Feb 23, 2021

确实,reLaunch 时应该将所有页面都卸载掉。

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-h5 Target - 编译到 H5 V-3 Version - 3.x
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants