import Vue from 'vue' import App from './App' import store from './store'//本地缓存 import './static/font-awesome/font-awesome.css' import nothing from './util/nothing'//常用方法 import AppContext from './util/AppContext'//构造方法 import Env from './util/Env'//配置文件 import base from './util/base.js' import http from './util/http.js'; import './css/uni.css' import './static/iconfont/iconfont.css' Vue.config.productionTip = false Vue.prototype.$store = store Vue.prototype.$nothing = nothing Vue.prototype.$AppContext = AppContext Vue.prototype.$Env = Env Vue.prototype.$base = base Vue.prototype.$http = http App.mpType = 'app' const app = new Vue({ store, nothing, AppContext, ...App, mounted() { AppContext.initialize(this) } }) app.$mount()