hezhongfeng / vue-page-stack

Routing and navigation for your Vue SPA. Vue3.0 单页应用导航管理器
https://vue-page-stack-example.onrender.com
MIT License
711 stars 78 forks source link

从 3.0.1 升级到 3.1.2 导致的router.replace后页面缓存不生效 #161

Closed gaojungithub2004 closed 3 months ago

gaojungithub2004 commented 3 months ago

从 3.0.1 升级到 3.1.2 导致的router.replace后页面缓存不生效 问题描述

  1. 我replace到一个A页面 2.A页面在跳转B页面 3.B页面返回到A, A输入框数据被清空
  2. 再次 从 A 跳转到B B页面返回 输入框不会被清空
hezhongfeng commented 3 months ago

给一个复现的小 repo 吧

gaojungithub2004 commented 3 months ago

小 repo 怎么给啊? 我不太会, 你给我说说,我看看, 你说的是demo?

gaojungithub2004 commented 3 months ago

我用vite写了一个demo你可以看看 vue-page-stack-demo.zip

hezhongfeng commented 3 months ago

就是一个公开的仓库,能复现就行,最简单的就行

hezhongfeng commented 3 months ago

我明天看一下

hezhongfeng commented 3 months ago

@gaojungithub2004 已修复,需升级到最新版 3.1.3