VUE.js项目中控制台报错: Uncaught (in promise) NavigationDuplicated解决方法
原文:https://blog.csdn.net/zy21131437/article/details/99548983问题愿意:依赖包中vue-router出现问题(猜测为版本问题);解决方法:在项目目录下运行npm i vue-router@3.0 -S这条指令就可以解决了。(更换版本)或者在main.js中添加以下代码:import Router from 'vue-rout...
·
在使用vue-router的this.$router.replace
进行路由跳转的时候快速点击会报错
Uncaught (in promise) NavigationDuplicated
把项目依赖的 node_modules 文件夹删除, 然后再 npm install 重新下载依赖包就可以解决。
更多推荐
已为社区贡献1条内容
所有评论(0)