Advertisement
Guest User

Untitled

a guest
Apr 18th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. // 路由切换时候带着 query 我探索了半天才发现这么写还行
  2. returnR.afterEach((to, from) => {
  3. if (to.path !== from.path && from.path !== "/") {
  4. returnR.push({ query: from.query })
  5. }
  6. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement