1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
router.beforeEach((to, from, next) => { if (to.query.abc|| !from.query.abc) { next() return } if (from.query.abc) { let toQuery = JSON.parse(JSON.stringify(to.query)) toQuery.abc= from.query.abc next({ name: to.name, query: toQuery }) } }) |