Former-commit-id: 0a49e22e5a531c2df8fa90244bedb6e0ac4297c6 [formerly 0a49e22e5a531c2df8fa90244bedb6e0ac4297c6 [formerly 0a49e22e5a531c2df8fa90244bedb6e0ac4297c6 [formerly 0a49e22e5a531c2df8fa90244bedb6e0ac4297c6 [formerly a570816c9de27ef7bc3b80c1cd5bb8bd0f2c9c13 [formerly 39ab0a504140b305df41c0d209d913079d210ef7]]]]] Former-commit-id: 7a56aafdafea6ee6ffd2b046959b88c471eaab15 Former-commit-id: 7466b6ec8a35116a499addb8630047ca7576bacc Former-commit-id: 98b9f572a6b21a6ee02483794ecd0dd0cf6873b3 [formerly 8bbac95c8d9e75c185affb7e7a6f1fddc7cc6ed5] Former-commit-id: c3909adc020a418579d7b3a2034689bba0e35593 Former-commit-id: 35cf98c0c012ee69dad83556f6654ab074730d9b Former-commit-id: ce8623ae25b423c26062e738d0df9276bee3c387 Former-commit-id: 214996c73a86f6b46d2414225b6660358f585946 Former-commit-id: fe121e22a74d82a43357212cd157c01eeda108e5
83 lines
1.7 KiB
JavaScript
Executable File
83 lines
1.7 KiB
JavaScript
Executable File
import 'babel-polyfill'
|
|
|
|
import Vue from 'vue'
|
|
import App from './App'
|
|
import router from './router'
|
|
import i18n from './i18n'
|
|
|
|
import ElementUI from 'element-ui'
|
|
import 'element-ui/lib/theme-chalk/index.css'
|
|
|
|
// v-charts
|
|
import VCharts from 'v-charts'
|
|
|
|
// font-awesome
|
|
import '@/assets/library/font-awesome-4.7.0/css/font-awesome.min.css'
|
|
|
|
// simplemde css
|
|
import 'simplemde/dist/simplemde.min.css'
|
|
|
|
// svg图标
|
|
import '@/assets/icons/index.js'
|
|
|
|
// markdown主题
|
|
import 'github-markdown-css'
|
|
|
|
// 代码高亮主题
|
|
import '@/assets/library/highlight/styles/atom-one-light.css'
|
|
|
|
// 全局注册的组件
|
|
import '@/components'
|
|
|
|
// 异步请求库
|
|
import '@/plugin/axios'
|
|
|
|
// mock接口设置
|
|
import '@/mock/register'
|
|
|
|
// vuex
|
|
import store from '@/store/index.js'
|
|
|
|
// 右键菜单
|
|
import contentmenu from 'v-contextmenu'
|
|
import 'v-contextmenu/dist/index.css'
|
|
|
|
// 插件 导出文件
|
|
import pluginImport from '@/plugin/import'
|
|
// 插件 导出文件
|
|
import pluginExport from '@/plugin/export'
|
|
// 插件 log简化
|
|
import pluginLog from '@/plugin/log'
|
|
// 插件 打开页面
|
|
import pluginOpen from '@/plugin/open'
|
|
// 插件 支持百万级数据的表格
|
|
import bigdataTable from '@/plugin/vue-bigdata-table'
|
|
|
|
import buildConfig from '../config/index'
|
|
|
|
Vue.use(ElementUI)
|
|
Vue.use(VCharts)
|
|
Vue.use(contentmenu)
|
|
|
|
Vue.use(pluginImport)
|
|
Vue.use(pluginExport)
|
|
Vue.use(pluginLog)
|
|
Vue.use(pluginOpen)
|
|
Vue.use(bigdataTable)
|
|
|
|
Vue.config.productionTip = false
|
|
|
|
Vue.prototype.$env = process.env.NODE_ENV === 'development'
|
|
|
|
Vue.prototype.$assetsPublicPath = process.env.NODE_ENV === 'development' ? buildConfig.dev.assetsPublicPath : buildConfig.build.assetsPublicPath
|
|
|
|
/* eslint-disable no-new */
|
|
new Vue({
|
|
el: '#app',
|
|
store,
|
|
i18n,
|
|
router,
|
|
template: '<App/>',
|
|
components: { App }
|
|
})
|