vue项目路由跳转时控制台出现NavigationDuplicated错误, message: "Navigating to current location (XXX) is not allowed". 解决办法: 1. 在src\router\index.js 中重写Router.prototype.push const routerPush = Router.prototype.push Router.prototype.push = function push (locat
main.js import Vue from 'vue' import App from './App' import router from './router' import store from './vuex' import Axios from 'axios' Vue.prototype.$axios=Axios Axios.defaults.baseURL="http://www.wwtliu.com" Vue.config.productionTip = false n