import Vue from 'vue'
|
import App from './App'
|
|
Vue.config.productionTip = false
|
|
import uView from 'uview-ui'
|
import Tabbar from '@/components/tarbar.vue'
|
import navigation from '@/components/Header.vue'
|
|
Vue.component('Tabbar', Tabbar)
|
Vue.component('navigation', navigation)
|
Vue.use(uView);
|
|
// 引入全局状态管理
|
import store from './store/index.js'
|
Vue.prototype.$store = store
|
|
// 获取状态栏盖度
|
store.dispatch('getHeight')
|
|
// 接口前缀地址
|
// Vue.prototype.$baseUrl = 'http://192.168.0.15:10016/';
|
Vue.prototype.$baseUrl = 'https://dmtest.ahapp.net/meeting_web_interface/';
|
|
Vue.prototype.$onWait = new Promise((resolve) => {
|
Vue.prototype.$reslove = resolve
|
})
|
|
App.mpType = 'app'
|
|
const app = new Vue({
|
store,
|
...App
|
})
|
|
// http接口API抽离
|
import httpApi from '@/utils/http.api.js'
|
Vue.use(httpApi, app)
|
|
// 请求拦截器
|
import interceptor from '@/utils/http.interceptor.js'
|
Vue.use(interceptor, app)
|
|
app.$mount()
|