[Solved] Uncaught (in promise) NavigationDuplicated: Avoided redundant navigation to

How to Solve Error: Uncaught (in promise) NavigationDuplicated: Avoided redundant navigation to

 

main.js is configured as follows

import Router from 'vue-router';
//Routing navigation redundancy error reporting (route duplication)
const originalPush = Router.prototype.push
Router.prototype.push = function push(location) {
    return originalPush.call(this, location).catch(err => err)
}

Similar Posts:

Leave a Reply

Your email address will not be published. Required fields are marked *