export default new Router({ mode:"hash", routes:[ ... { path:'/detail', name:"detail", /* 异步路由 */ component:()=>import('@/pages/Detail') }})