Vue 常见错误

 Uncaught (in promise) NavigationDuplicated {_name:””NavigationDuplicated”

vue-router ≥3.0版本回调形式以及改成promise api的形式了,返回的是一个promise,如果没有捕获到错误,控制台始终会出现如图的警告,针对于路由跳转相同的地址,链接地址(解决方法一): https://blog.csdn.net/zy21131437/article/details/99548983

解决方法2: (安装不报错版本)

npm i vue-router@3.0 -S

Leave a Reply

Your email address will not be published. Required fields are marked *

*
*

BACK TO TOP