1234567891011121314151617181920212223242526272829303132 |
- import Vue from 'vue'
- import App from './App'
- import Container from "library/Container.js";
- import Base from "library/Base.js";
- import uView from '@/uni_modules/uview-ui/index.js';
- Vue.use(uView);
- //导航栏组件
-
- import headers from './components/ui-header/index.vue'
- Vue.component('page-head',headers)
-
-
- //使用伪装容器
- let $c = Container.getInstance();
- let base = new Base(Vue,$c);
- let store = $c.make(require("./store"),"store");
- Vue.prototype.$store = store; //stroe
- store.commit("init",Vue.prototype);
- Vue.prototype.base = base;
- //设置为 false 以阻止 vue 在启动时生成生产提示
- Vue.config.productionTip = false;
- App.mpType = 'app';
- const app = new Vue({
- store,
- ...App
- })
- app.$mount();
|