index.js 243 B

123456789
  1. import config from '@/config';
  2. const { plugin } = config;
  3. export default (Vue) => {
  4. for (let name in plugin) {
  5. const value = plugin[name];
  6. Vue.use(require(`./${name}`).default, typeof value === 'object' ? value : undefined);
  7. }
  8. };