vue配置默认显示页面和默认路由 1.在router文件夹中的index.js中配置 const routes = [ { //没写就是任意路由都是定向这个 path:'', //重定向 redirect:'/xxx' } ]