Newer
Older
XinYang_SanWei+RongYun / src / components / index.js
@张强云笔记本 张强云笔记本 on 17 Dec 2021 283 bytes 融云通话接入
// 组件扩展
const files = require.context('./', true, /\.vue$/);

let components = {};

files.keys().map(item => {
  let _name = item.split(".vue")[0].split("/");
  let name = _name[_name.length - 1];
  components[name] = require(`${item}`).default;
})
export default components