场景: 现在有这样的路由user/和user/:id, 我在他们的根组件包裹了keep-alive, 发现从user/进入user/1, 再返回user/, 进入user/2, 发现user/2显示的是user/1的内容(因为用了keep-alive)
期望: 通用智能的组件销毁方式, 能keep-alive就keep-alive组件,除非如上所说的内容重复再销毁, 例如user -> user/:1 -> user/:1/profile 此时user和user/:id应该是未被销毁的(deactivated), 从user/1/profile返回到user/1, user/1/profile被销毁, user/1 -> user -> user/2, user/1被销毁.....
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
小伙看你根骨奇佳,潜力无限,来学PHP伐。