-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.js
51 lines (45 loc) · 1.25 KB
/
main.js
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
45
46
47
48
49
50
51
import Vue from 'vue'
import App from '@/App'
//顶部栏组件
import cuCustom from '@/components/cu-custom.vue'
Vue.component('cu-custom', cuCustom)
// 涟漪组件
import ripple from '@/components/ripple.vue'
Vue.component('ripple', ripple);
// 提示组件
import tip from '@/components/xing-tip.vue'
Vue.component('tip', tip);
//弹框组件
import modal from '@/components/xing-modal.vue'
Vue.component('modal', modal);
//radio组件
import xingRadio from '@/components/xing-radio.vue'
Vue.component('xingRadio', xingRadio);
// 确认组件
import confirm from '@/components/xing-comfirm.vue'
Vue.component('comfirm', confirm);
Vue.component('confirm', confirm);
//空白提示
import emptyTip from '@/components/empty-tip.vue';
Vue.component('emptyTip', emptyTip);
//Vuex
import store from '@/store.js'
Vue.prototype.$store = store;
// 仿vue-router插件
import Router from '@/js_sdk/hhyang-uni-simple-router/index.js'
import routerConfig from '@/router-config.js'
Vue.use(Router)
new Router(routerConfig);
//挂载axios至全局
import {
http,
httpWithSession
} from '@/axios-config.js';
Vue.prototype.$http = http;
Vue.prototype.$httpWithSession = httpWithSession;
Vue.config.productionTip = true;
App.mpType = 'app'
const app = new Vue({
...App
})
app.$mount()