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
| import Vue from 'vue'
| import App from './App'
|
| Vue.config.productionTip = false
|
| App.mpType = 'app'
|
| // 引入全局uView
| import uView from 'uview-ui'
| Vue.use(uView);
|
| // 引入全局状态管理
| import store from './store/index.js'
| Vue.prototype.$store = store
|
| store.dispatch('getHeight')
|
| Vue.prototype.$baseUrl = 'https://ditan.hflxkj.top/stall/api';
|
| const app = new Vue({
| store,
| ...App
| })
|
| app.$mount()
|
|