Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // 路由切换时候带着 query 我探索了半天才发现这么写还行
- returnR.afterEach((to, from) => {
- if (to.path !== from.path && from.path !== "/") {
- returnR.push({ query: from.query })
- }
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement