Blame view

frontend/front/src/main.js 2 KB
8d73e917   陈威   初始化提交
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 store from './store'
import router from './router'
import i18n from '@/lang/index.js'
import './plugins'
import '@/components/export'
import './plugs/tableSlot'
import dayjs from 'dayjs'
import req from './utils/request'
import '@/icon/index'
import '@/icon/iconfont/iconfont.css'
import 'moment/locale/zh-cn'
import '@/assets/iconfont/iconfont.css'
import '@/styles/flex.scss'
import '@/styles/custom.css'
import '@fortawesome/fontawesome-free/css/all.css'
import '@fortawesome/fontawesome-free/css/v4-shims.css'

import htProcessForecast from '@/views/matter/processForecast/processForecastPage.vue'
import HtKanban from '@/components/layouts/HtKanban/index.vue'
// import Datatimerange from '@/views/home/components/diycomponents/datatimerange.vue'
//
// import jchyEchars from '@/views/home/components/diycomponents/jchyEchars.vue'
// import lxEchars from '@/views/home/components/diycomponents/lxEchars.vue'
import {assignValues,createDoubleArray,getPhotoUrl,parseTime}  from '@/utils/common.js'
const amis = () => import('@/components/amisContainer/index.vue')

// Vue.component('JchyEchars', jchyEchars)
// Vue.component('LxEchars', lxEchars)

Vue.component('HtProcessForecast', htProcessForecast)
Vue.component('HtKanban', HtKanban)
// Vue.component('Datatimerange', Datatimerange)
/* eslint-disable */
Vue.component('amis', amis)
// if (process.env.NODE_ENV === 'production') {
// const { mockXHR } = require('@/utils/static')
// mockXHR()
// }
Vue.prototype.$dayjs = dayjs
Vue.prototype.$assignValues = assignValues;
Vue.prototype.$createDoubleArray = createDoubleArray;
Vue.prototype.parseTime = parseTime;
Vue.prototype.$getPhotoUrl = getPhotoUrl;
Vue.config.productionTip = false

Object.defineProperty(Vue.prototype, '$http', {
  get() {