admin管理员组

文章数量:1794759

【vue

【vue

vue-router.esm.js?8c4f:2065 Uncaught (in promise) NavigationDuplicated: Avoided redundant navigation

遇到如上异常:解决方案如下:

//在main.js中添加以下代码
import Router from 'vue-router'
const routerPush = Router.prototype.push
Router.prototype.push = function push(location) {return routerPush.call(this, location).catch(error=> error)
}

本文标签: Vue