1234567891011121314151617181920212223242526272829303132333435363738394041 |
- import Vue from 'vue'
- import App from './App'
- // vuex
- import store from './store'
- // 引入全局uView
- import uView from '@/uni_modules/uview-ui'
- import baseApi from '@/util/base.js'
- import request from '@/util/request.js'
- import utils from '@/util/util.js'
- import webim from 'webim.js';
- import helper from'@/common/helper.js'
- Vue.prototype.$api = baseApi
- Vue.prototype.$request = request
- Vue.prototype.$utils = utils
- Vue.prototype.$helper = helper
- Vue.prototype.$socket = webim;
- Vue.prototype.$store = store
- Vue.config.productionTip = false
- App.mpType = 'app'
- Vue.use(uView)
- // #ifdef MP
- // 引入uView对小程序分享的mixin封装
- const mpShare = require('@/uni_modules/uview-ui/libs/mixin/mpShare.js')
- Vue.mixin(mpShare)
- // #endif
- const app = new Vue({
- store,
- ...App
- })
- // // 引入请求封装
- // require('./util/request/index')(app)
- app.$mount()
|