报错提示profile组件避免了到当前位置的冗余导航。
在VueRouter后添加
const originalPush = VueRouter.prototype.push
VueRouter.prototype.push = function push(location) {
return originalPush.call(this, location).catch(err => err)
}


解决报错

Vue组件多次点击报错Avoided redundant navigation to current location: “/profile“.相关推荐

  1. vue报错 Avoided redundant navigation to current location: “/search“

    报错信息: Uncaught (in promise) NavigationDuplicated: Avoided redundant navigation to current location: ...

  2. Vue路由跳转报错Avoided redundant navigation to current location: “/xxxxxx“.

    在使用this.$router.push进行路由的跳转时,出现如下报错: 今天在开发的过程遇到了上述问题,通过查阅资料得到了解答,以自己的理解进行了整理 报错原因: 当我们在使用编程式路由进行页面跳转 ...

  3. 解决vue-router报NavigationDuplicated: Avoided redundant navigation to current location: “/login“ 的问题

    一.普遍问题解决方法 import Router from 'vue-router'; Vue.use(Router); // 解决ElementUI导航栏中的vue-router在3.0版本以上重复 ...

  4. 报错:Avoided redundant navigation to current location: “/login“.完美解决

    需求: 登陆之后才能查看主页面,否则跳转至登录页 遇到的问题: 一开始是打算直接在拦截器跳转路由的,发现会报错Avoided redundant navigation to current locat ...

  5. 四种解决Vue中重复点击相同路由控制台报错问题( Avoided redundant navigation to current location)

    vue-router 升级到3.1.x 后,重复点击导航时,控制台出现报错 ,虽然不影响功能使用,但是看的就不舒服. 报错信息 Uncaught (in promise) NavigationDupl ...

  6. 解决Vue报错:Uncaught (in promise) NavigationDuplicated: Avoided redundant navigation to current location

    问题描述:重复点击导航时,控制台出现报错 ,虽然不影响功能使用,但也不能坐视不管. 解决 Vue 重复点击相同路由,出现 Uncaught (in promise) NavigationDuplica ...

  7. 前端开发:Vue项目报错NavigationDuplicated:Avoided redundant navigation to current location:“/XXX”的解决方法

    最近在Vue项目开发的过程中遇到一个问题,那就是在点击同一个路由操作的时候,控制台会报一下错误提示: Uncaught (in promise) NavigationDuplicated: Avoid ...

  8. 解决报错:Uncaught (in promise) NavigationDuplicated: Avoided redundant navigation to current location: “

    报错内容: vue-router.esm.js?68cf:2065 Uncaught (in promise) NavigationDuplicated: Avoided redundant navi ...

  9. vue 跳转报 NavigationDuplicated: Avoided redundant navigation to current location: “/to-do“.

    错误提示:NavigationDuplicated: Avoided redundant navigation to current location: "/to-do". 提示这 ...

最新文章

  1. java中的排序算法——归并排序
  2. window.location.href如何多次请求_RabbitMQ如何保证幂等性?
  3. tensorflow object detection API训练公开数据集Oxford-IIIT Pets Dataset
  4. 元组-元组和格式化字符串
  5. 远程桌面时提示凭证不工作问题的终极解决办法
  6. 【遥感数字图像处理】基础知识:第二章 遥感知识回顾、遥感数字图像处理基础知识
  7. fpga运算服务器_一张图了解CPU、GPU、ASIC、FPGA性能、功耗效率、灵活性
  8. php mysql_fetch_array 不要0_1_php – mysql_fetch_array不适用于1行查询结果
  9. Linux Zero-copy零拷贝技术:源码示例
  10. 使用 Java Annotation 定制 Ant Junit Report
  11. AutoCAD中的Spline曲线算法分析(二)
  12. 腾讯云图(TCV)使用指南
  13. 2.5音频编辑软件2.6语音识别技术
  14. 有了这个 Python 库,以后再也不用写正则表达式了
  15. 百度给创新员工发2000w奖金........
  16. Matlab 函数circShift、psf2otf 的 python(Numpy)实现
  17. java定义私有变量_Java Reflection(七):私有变量和私有方法
  18. 淘宝王琤:Taobao JVM的性能优势与价值体现
  19. 稻城亚丁神州租车自驾游,一生一定要去一次的地方
  20. 【论文阅读-NeurIPS-2019】Coda: An End-to-End Neural Program Decompiler

热门文章

  1. 【资料下载】Python 第三讲——正则表达式爬取糗事百科数据...
  2. Linux dd命令制作U盘启动盘
  3. checkbox反复调用attr('checked', true/false)只有第一次生效
  4. C++扬帆远航——3(打印图形)
  5. linux 模块常用命令
  6. asp.net 路径(转)
  7. 高朋F团QQ团 三品牌合力激战团购市场
  8. linux分屏显示文件命令:more(less)
  9. 2021 最流行的十大项目,新项目居榜首,总有长江后浪推前浪!
  10. Ansible-Playbook-template算数运算以及流程控制