_name: "NavigationDuplicated", name: "NavigationDuplicated", message: "Navigating to current locatio

緣由:在使用ElementUi時點擊同一個路由,頁面報錯. 在當前頁面添加:javascript import Router from 'vue-router' const originalPush = Router.prototype.push; Router.prototype.push = function push(location) { return originalPush.cal
相關文章
相關標籤/搜索