1 Star 0 Fork 16

yjlovezy / 婚庆小程序

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
main.js 760 Bytes
一键复制 编辑 原始数据 按行查看 历史
DanceLynx 提交于 2020-10-16 22:14 . first commit
import Vue from 'vue'
import App from './App'
import uView from './uview-ui'
import httpInterceptor from '@/common/http.interceptor.js'
import Api from '@/common/http.api.js'
import ApiPath from '@/common/http.path.js'
import Cache from '@/common/cache.js'
// 此处为演示vuex使用,非uView的功能部分
import store from '@/store'
// 引入uView提供的对vuex的简写法文件
let vuexStore = require('@/store/$u.mixin.js')
Vue.config.productionTip = false
App.mpType = 'app'
Vue.use(uView)
Vue.prototype.$apiPath = ApiPath
// 缓存管理
Vue.prototype.$httpCache = Cache
const app = new Vue({
...App,
store
})
// http拦截器
Vue.use(httpInterceptor,app)
// Api 集中管理
Vue.use(Api,app)
Vue.mixin(vuexStore)
app.$mount()
JavaScript
1
https://gitee.com/yjlovezy/wedding-app.git
git@gitee.com:yjlovezy/wedding-app.git
yjlovezy
wedding-app
婚庆小程序
master

搜索帮助