jiangping
2023-09-13 7cce6eae91aab7a6270174085ddc615fabf8f02c
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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()