美文网首页
vue-router.esm.js?8c4f:2062 Unca

vue-router.esm.js?8c4f:2062 Unca

作者: 梦行乌托邦 | 来源:发表于2020-07-16 01:15 被阅读0次
img1

一、重新安装vue-router版本:npm i vue-router@3.0 -S

二、不换版本,加代码(没试哈)

import Router from 'vue-router'
const routerPush = Router.prototype.push
Router.prototype.push = function push(location) {
  return routerPush.call(this, location).catch(error=> error)
}

参考解决:

https://blog.csdn.net/hejiaying68/article/details/101012260

相关文章

网友评论

      本文标题:vue-router.esm.js?8c4f:2062 Unca

      本文链接:https://www.haomeiwen.com/subject/nuzshktx.html