NavigationDuplicated {_name: "NavigationDuplicated", name: "NavigationDuplicated
Posted 随意滴博客
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了NavigationDuplicated {_name: "NavigationDuplicated", name: "NavigationDuplicated相关的知识,希望对你有一定的参考价值。
在使用ElementUi时点击同一个路由,页面报错
查询后解决方式如下
import Router from ‘vue-router‘ const originalPush = Router.prototype.push Router.prototype.push = function push(location) { return originalPush.call(this, location).catch(err => err) }
以上是关于NavigationDuplicated {_name: "NavigationDuplicated", name: "NavigationDuplicated的主要内容,如果未能解决你的问题,请参考以下文章
Vue router报错:NavigationDuplicated {_name: "NavigationDuplicated", name: "NavigationDu
Vue.js - NavigationDuplicated 与新路径
Vue-router 报NavigationDuplicated的可能解决方案
Vue-router 报NavigationDuplicated的可能解决方案
vue router 报错: Uncaught (in promise) NavigationDuplicated {_name:""NavigationDuplicated&qu