解决elementUI中使用el-submenu的路由模式会报错的问题
const originalPush = VueRouter.prototype.push VueRouter.prototype.push = function push(location) { return originalPush.call(this, location).catch(err => err) } // 下面的代码是vue的路由中的默认代码,把上面的代码复制粘贴到new VueRouter之前就ok const router = new VueRouter({ routes })
本想把生活活成一首诗, 时而优雅 , 时而豪放 , 结果活成了一首歌 , 时而不靠谱 , 时而不着调