解决编程式路由往同一地址跳转时会报错的情况
Uncaught (in promise) Error: Navigation cancelled from "xxx" to "xxx" with a new navigation.
解决:在router文件夹下等index.js文件中写入
// router文件夹下等index.js文件中写入
//解决编程式路由往同一地址跳转时会报错的情况
const originalPush = VueRouter.prototype.push
const originalReplace = VueRouter.prototype.replace
//push
VueRouter.prototype