2020年12月29日

批量导入子组件

摘要: index.js // 实现自动化导入子组件 const modules = require.context('./', false, /\w+.vue$/) const res = {} modules.keys().forEach(filePath => { const key = filePa 阅读全文

posted @ 2020-12-29 10:03 章画 阅读(104) 评论(0) 推荐(0)

导航