feat: player goback
This commit is contained in:
@@ -40,8 +40,19 @@ const router = createRouter({
|
||||
],
|
||||
})
|
||||
|
||||
router.beforeEach((to, from) => {
|
||||
router.beforeEach((to, from, next) => {
|
||||
to.meta.from = {
|
||||
name: from.name,
|
||||
params: from.params,
|
||||
}
|
||||
console.log("from", from, "goto: ", to)
|
||||
|
||||
next()
|
||||
// if (from.matched.length === 0) {
|
||||
// next({ name: 'tab.home', params: to.params })
|
||||
// } else {
|
||||
// next()
|
||||
// }
|
||||
})
|
||||
|
||||
export default router
|
||||
|
||||
Reference in New Issue
Block a user