main.js 774 Bytes
Newer Older
huahua committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
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()