路由如何改变,对我的案子很重要.
这就是我所拥有的:
router.beforeEach((to, from, next) => {
if ( /* IsItABackButton && */ from.meta.someLogica) {
next(false)
return ''
}
next()
})
是否有一些内置的解决方案,我可以使用,而不是IsItABackButton
comments ?我想Vue路由本身并没有,但任何解决方法都可以在这里使用.还是会有其他更好的方式来识别它?