main.js
1.02 KB
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
import Vue from 'vue'
import App from './App'
// 工具
import '@/plugins/utils.js';
//服务端路径配置中心
import base from '@/config/baseUrl'
Vue.prototype.$base = base;
// vuex数据管理中心
import store from '@/store'
Vue.prototype.$store = store;
//判断是否登录
import { judgeLogin } from '@/config/login';
Vue.prototype.judgeLogin = judgeLogin;
// #ifdef APP
// 自定义showModal组件
import f_show_modal from '@/components/module/show_modal/f_show_modal.js'
Vue.use(f_show_modal)
// #endif
// uview库
import uView from '@/uni_modules/uview-ui'
Vue.use(uView)
//i18n
import i18n from '@/config/i18n.js'
// 公共组件注册
import publicModule from "@/components/common/public-module.vue";
Vue.component("public-module", publicModule);
import headerSearch from "@/components/common/header-search.vue";
Vue.component("header-search", headerSearch);
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
store,
i18n,
...App
})
// request
import '@/config/request.js';
app.$mount()