index.js 363 B

123456789101112131415161718192021222324
  1. import Suifang from '~/views/suifang/index'
  2. import _Vue from 'vue'
  3. const components = [
  4. Suifang,
  5. ]
  6. const install = function(Vue){
  7. if (!Vue) {
  8. window.Vue = Vue = _Vue
  9. }
  10. components.forEach(component => {
  11. Vue.component(component.name, component);
  12. });
  13. }
  14. export default {
  15. version: '1.0.0',
  16. Suifang,
  17. install,
  18. }