美文网首页
vue路由重复报错问题

vue路由重复报错问题

作者: Madrigal_cdfa | 来源:发表于2021-10-21 09:02 被阅读0次

    问题

    vue路由重复报错 NavigationDuplicated: Avoided redundant navigation to current location

    解决

    const originalPush = VueRouter.prototype.push; VueRouter.prototype.push = function push (location) { return originalPush.call(this,location).catch(err => err); }

    相关文章

      网友评论

          本文标题:vue路由重复报错问题

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