2018-01-14 22:51:12 +08:00
|
|
|
import Vue from 'vue'
|
|
|
|
|
import App from './App'
|
|
|
|
|
import router from './router'
|
2018-02-13 20:26:26 +08:00
|
|
|
import i18n from './i18n'
|
2018-01-14 22:51:12 +08:00
|
|
|
|
|
|
|
|
import ElementUI from 'element-ui'
|
|
|
|
|
import 'element-ui/lib/theme-chalk/index.css'
|
|
|
|
|
|
|
|
|
|
// font-awesome
|
|
|
|
|
import '@/assets/library/font-awesome-4.7.0/css/font-awesome.min.css'
|
|
|
|
|
|
|
|
|
|
// simplemde css
|
|
|
|
|
import 'simplemde/dist/simplemde.min.css'
|
|
|
|
|
|
2018-02-22 13:20:17 +08:00
|
|
|
// svg图标
|
|
|
|
|
import '@/assets/icons/index.js'
|
|
|
|
|
|
2018-01-14 22:51:12 +08:00
|
|
|
// markdown主题
|
|
|
|
|
import 'github-markdown-css'
|
|
|
|
|
|
|
|
|
|
// 代码高亮主题
|
|
|
|
|
import '@/assets/library/highlight/styles/atom-one-light.css'
|
|
|
|
|
|
|
|
|
|
// 全局注册的组件
|
|
|
|
|
import '@/components'
|
|
|
|
|
|
|
|
|
|
// 异步请求库
|
|
|
|
|
import '@/plugin/axios'
|
|
|
|
|
|
2018-01-15 19:00:38 +08:00
|
|
|
// mock接口设置
|
2018-02-19 10:02:47 +08:00
|
|
|
import '@/mock/register'
|
2018-01-15 19:00:38 +08:00
|
|
|
|
2018-01-14 22:51:12 +08:00
|
|
|
// vuex
|
|
|
|
|
import store from '@/store/index.js'
|
|
|
|
|
|
2018-02-10 21:18:53 +08:00
|
|
|
// 插件 导出文件
|
2018-02-15 15:30:00 +08:00
|
|
|
import pluginImport from '@/plugin/import'
|
|
|
|
|
// 插件 导出文件
|
2018-02-10 21:18:53 +08:00
|
|
|
import pluginExport from '@/plugin/export'
|
2018-06-12 11:04:16 +08:00
|
|
|
// 插件 log简化
|
|
|
|
|
import pluginLog from '@/plugin/log'
|
|
|
|
|
// 插件 打开页面
|
|
|
|
|
import pluginOpen from '@/plugin/open'
|
2018-06-13 15:13:27 +08:00
|
|
|
// 插件 支持百万级数据的表格
|
|
|
|
|
import bigdataTable from '@/plugin/vue-bigdata-table'
|
2018-01-25 20:26:12 +08:00
|
|
|
|
2018-01-14 22:51:12 +08:00
|
|
|
Vue.use(ElementUI)
|
|
|
|
|
|
2018-02-15 15:30:00 +08:00
|
|
|
Vue.use(pluginImport)
|
2018-02-10 21:18:53 +08:00
|
|
|
Vue.use(pluginExport)
|
2018-06-12 11:04:16 +08:00
|
|
|
Vue.use(pluginLog)
|
|
|
|
|
Vue.use(pluginOpen)
|
2018-06-13 15:13:27 +08:00
|
|
|
Vue.use(bigdataTable)
|
2018-01-25 20:26:12 +08:00
|
|
|
|
2018-01-14 22:51:12 +08:00
|
|
|
Vue.config.productionTip = false
|
|
|
|
|
|
2018-05-26 20:53:56 +08:00
|
|
|
Vue.prototype.$env = process.env.NODE_ENV === 'development'
|
|
|
|
|
|
2018-01-14 22:51:12 +08:00
|
|
|
/* eslint-disable no-new */
|
|
|
|
|
new Vue({
|
|
|
|
|
el: '#app',
|
|
|
|
|
store,
|
2018-02-13 20:26:26 +08:00
|
|
|
i18n,
|
2018-01-14 22:51:12 +08:00
|
|
|
router,
|
|
|
|
|
template: '<App/>',
|
2018-06-11 09:42:38 +08:00
|
|
|
components: { App }
|
2018-01-14 22:51:12 +08:00
|
|
|
})
|