原文:vue路由跳转报错Avoided redundant navigation to current location: “/xxxxxx“.(同个路由地址点击2此报错问题解决)

来源:https: blog.csdn.net weixin article details 一 问题出现及其出现原因 二 问题解决 三 原理解析 四 this指向复习 一 问题出现及其出现原因 在使用this. router.push进行路由的跳转时,出现如下报错: 问题出现原因:重复路由跳转,比如说当前路由是商品详情页面 goodsDetail,但是点击按钮进行this. router.pu ...

2020-08-26 15:14 2 955 推荐指数:

查看详情

Vue Avoided redundant navigation to current location Error

这个报错的根源就是vue-router组件,错误内容翻译一下是: Avoided redundant navigation to current location === 避免冗余导航到当前位置 这个问题解决方案就是屏蔽它,就是重写vue-router的push方法,不影响正常使用 ...

Thu Jun 25 01:42:00 CST 2020 0 3244
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM