main.js
671 Bytes
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
import Vue from 'vue'
import App from './App'
import store from './store/index';
Vue.prototype.$store = store;
//配置
import config from './config.js'
Vue.prototype.$conf = config
Vue.prototype.$msg = (title, duration = 1500, mask = false, icon = 'none') => {
//统一提示方便全局修改
if (Boolean(title) === false) {
return;
}
uni.showToast({
title,
duration,
mask,
icon
});
}
import api from './common/http/index.js'
Vue.prototype.$api = api
import uniIcons from "@/components/uni-icons/uni-icons.vue"
Vue.component('uniIcons', uniIcons)
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
...App
})
app.$mount()