const routerList = []

function importAll (r) {
  r.keys().map(value => {
    r(value).default.map(item => {
      routerList.push(item)
    })
  })
}

importAll(require.context('.', true, /\.router\.js/))

 

相关文章:

  • 2021-11-30
  • 2022-02-19
  • 2021-04-10
  • 2022-12-23
  • 2021-10-11
  • 2021-05-17
  • 2021-11-27
  • 2021-06-05
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-17
相关资源
相似解决方案