Vue 动态引入路由文件

const routerList = []
const routerUrls = require.context('./router', true, /\.js/)
console.log(routerUrls);
routerUrls.keys().forEach(item=>{
    routerList.push(...routerUrls(item).default)
})