解决vue项目出现Navigating to current location (XXX) is not allowed 报错

出现原因:在当前路由重复点击当前路由

解决方案:

在 router/index.js文件里添加下列方法即可

解决vue项目出现Navigating to current location (XXX) is not allowed 报错_第1张图片

 

你可能感兴趣的:(vue,vue.js)