feat: player goback

This commit is contained in:
Rogee
2024-12-12 11:02:46 +08:00
parent acd827c346
commit 5676ace699
2 changed files with 25 additions and 2 deletions

View File

@@ -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