-
Notifications
You must be signed in to change notification settings - Fork 47
Expand file tree
/
Copy pathmain.js
More file actions
executable file
·41 lines (35 loc) · 960 Bytes
/
Copy pathmain.js
File metadata and controls
executable file
·41 lines (35 loc) · 960 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
39
40
41
import Vue from 'vue'
import App from './App'
import store from './store'
import i18n, { updateTabbarText } from './lang/index'
//
Vue.prototype.$store = store
//
Vue.config.productionTip = false
Vue.prototype.$login = require('@/store/login') //判断是否登陆
//登录框提示框
import needLogin from '@/components/login/needLogin.vue';
Vue.component('needLogin',needLogin)
//授权提示框
import authorize from '@/components/login/authorize.vue';
Vue.component('authorize',authorize)
//消息提示框
import CysToast from '@/components/aui-toast/aui-toast.vue'
Vue.component('cys-toast',CysToast)
//通用导航栏
import customNav from '@/components/customNav/customNav.vue';
Vue.component('customNav',customNav)
//接口访问请求
import api from '@/API/'
Vue.prototype.API = api
//
App.mpType = 'app'
//
const app = new Vue({
i18n,
...App
})
app.$mount()
// Update titles on initial load
updateTabbarText()
export default app