就是在需要使用路由文件的时候,才会加载对应的vue文件 // router.js { path:"/about", component:()=>import("../views/about.vue") }