prompts you to report an error when verifying whether it is a Wechat browser:
:
Global routing judgment Code:
router.beforeEach((to,from,next)=>{
// title
const title = to.meta && to.meta.title;
if (title) {
document.title = title;
}
//
if((_need && isWeiXin()) ||!_need){
next();
}else{
next({ path: "/error", replace: true, query: { noGoBack: true }})
}
})
do you know what the reason is and how to solve it?