main.js 662 B

123456789101112131415161718192021222324
  1. import Vue from 'vue'
  2. import App from './App'
  3. import Container from "library/Container.js";
  4. import Base from "library/Base.js";
  5. import store from './store'
  6. //导航栏组件
  7. import headers from './components/ui-header/index.vue'
  8. Vue.component('page-head',headers)
  9. //使用伪装容器
  10. let $c = Container.getInstance();
  11. let base = new Base(Vue,$c);
  12. Vue.prototype.$store = store; //stroe
  13. // #ifndef APP-PLUS
  14. store.commit("init",Vue.prototype);
  15. // #endif
  16. Vue.prototype.base = base;
  17. //设置为 false 以阻止 vue 在启动时生成生产提示
  18. Vue.config.productionTip = false;
  19. App.mpType = 'app';
  20. const app = new Vue({
  21. store,
  22. ...App
  23. })
  24. app.$mount();