在router.js中修改, const router = new VueRouter({ mode: 'history', routes: [...] }) 转载于:https://www.cnblogs.com/cina33blogs/p/8366217.html