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

replace 到 相同组件 时希望可以重用组件 #67

Open
p2world opened this issue Dec 13, 2018 · 1 comment
Open

replace 到 相同组件 时希望可以重用组件 #67

p2world opened this issue Dec 13, 2018 · 1 comment

Comments

@p2world
Copy link

p2world commented Dec 13, 2018

在tab左右滑的场景下,希望滑动后只更新url,还保持当前状态。

目前会使用新的组件替换当前组件

感谢

@p2world
Copy link
Author

p2world commented Dec 13, 2018

<div><router-link :to="{name:'Detail',params:{id:3}, query:$route.query}" :replace="true">3 replace</router-link></div>

暂时找到解决办法 replace 的时候把 VNK 也带上,不知道有没有问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant