8ea9c133
陈威
初始化提交
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
import Vue from 'vue'
import App from './App'
import store from './store'
import router from './router'
import i18n from '@/lang/index.js'
import './plugins'
import '@/components/export'
import req from './utils/request'
import '@/icon/index'
import '@/icon/iconfont/iconfont.css'
import 'moment/locale/zh-cn'
import '@/assets/iconfont/iconfont.css'
import htProcessForecast from '@/views/matter/processForecast/processForecastPage.vue'
import HtKanban from '@/components/layouts/HtKanban/index.vue'
|
8ea9c133
陈威
初始化提交
|
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
Vue.config.productionTip = false
Object.defineProperty(Vue.prototype, '$http', {
get() {
return req
},
})
const app = new Vue({
el: '#app',
router,
i18n,
store,
render: (h) => h(App),
})
const currentLocal = localStorage.getItem('lang') || 'zh-CN'
app && app.$validator && app.$validator.localize(currentLocal)
|