hezhongfeng / vue-page-stack

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

路由跳转如果直接把上一个路由的query赋值给跳转的路由会报错’parentComponent.ctx.deactivate is not a function‘ #151

Closed liuyinbin closed 8 months ago

liuyinbin commented 1 year ago

跳转路由如果是 const route = useRoute() const router = useRouter() router.replace({ path: "/home", query: route.query }) 这时候就会报错 parentComponent.ctx.deactivate is not a function 暂时我这里的解决办法是 let queryData = deepClone(route.query) delete queryData?.['stack-key'] 把这个stack-key删除后再赋值就可以,应该是如果不删除就赋值的话会导致新的页面不生产stack-key吧?

hezhongfeng commented 1 year ago

收到