Closed liuyinbin closed 8 months 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吧?
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']
收到
跳转路由如果是
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吧?