uniapp tabbar nvue跳转vue页面,例如首页是nvue, 商城是vue,如果点击顺序是商城=>首页=>商城,在router.beforeEach((to: any, from, next) => { if (to.path == from.path) { //解决多个接口跳转到登录页面的问题 // #ifdef APP-PLUS-NVUE || APP-PLUS // nvue跳转到vue页面, from,to是同一地址,解决此bug if (to.path == 'pages/login/login') { next(false) } else { next() } // #endif // #ifdef MP-ALIPAY || MP-WEIXIN next(false) // #endif return })中,在首页=>商城这一步时,from和to都是商城的url,from并没有正确获取到首页nvue页面的url