Blame view

frontend/front/src/main.js 1.12 KB
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'
95048d47   郭娟   fix:优化出入库以及项目填报的功能
15
import {parseTime}  from '@/utils/common.js'
ff0bd3bf   陈威   组件按钮
16
import './plugs/tableSlot'
8ea9c133   陈威   初始化提交
17
18
19
20
21
22
23

Vue.component('HtProcessForecast', htProcessForecast)
Vue.component('HtKanban', HtKanban)
// if (process.env.NODE_ENV === 'production') {
// const { mockXHR } = require('@/utils/static')
// mockXHR()
// }
95048d47   郭娟   fix:优化出入库以及项目填报的功能
24
Vue.prototype.parseTime = parseTime;
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)