2021-03-25 18:58:05 +08:00
|
|
|
import Vue from 'vue'
|
|
|
|
import Link from './Link.vue'
|
|
|
|
import router from './link-router'
|
2021-03-29 14:15:39 +08:00
|
|
|
import store from '../store'
|
2021-03-26 18:44:41 +08:00
|
|
|
import '@/styles/index.scss' // global css
|
|
|
|
import i18n from '../lang' // internationalization
|
|
|
|
import ElementUI from 'element-ui'
|
2021-04-20 11:21:53 +08:00
|
|
|
import '@/components/canvas/custom-component' // 注册自定义组件
|
2021-05-19 19:03:50 +08:00
|
|
|
import widgets from '@/components/widget'
|
2021-04-20 11:21:53 +08:00
|
|
|
import * as echarts from 'echarts'
|
|
|
|
Vue.prototype.$echarts = echarts
|
2021-03-25 18:58:05 +08:00
|
|
|
Vue.config.productionTip = false
|
2021-05-19 19:03:50 +08:00
|
|
|
Vue.use(widgets)
|
2021-03-26 18:44:41 +08:00
|
|
|
Vue.use(ElementUI, {
|
|
|
|
|
|
|
|
i18n: (key, value) => i18n.t(key, value)
|
|
|
|
})
|
2021-03-25 18:58:05 +08:00
|
|
|
new Vue({
|
|
|
|
router,
|
2021-03-29 14:15:39 +08:00
|
|
|
store,
|
2021-03-25 18:58:05 +08:00
|
|
|
render: h => h(Link)
|
|
|
|
}).$mount('#link')
|