Former-commit-id: bacfe4e86ce0599752cc74916bb9547add6b0725 [formerly bacfe4e86ce0599752cc74916bb9547add6b0725 [formerly bacfe4e86ce0599752cc74916bb9547add6b0725 [formerly bacfe4e86ce0599752cc74916bb9547add6b0725 [formerly f5ed703f2aefb46bd7a6dd7dbb6d141cd43dec08 [formerly b679a8fecf5a7d908d20d57b1098d9c4708574c3]]]]] Former-commit-id: 36c9337dc53258282bc83ed7b52a88c617a75a66 Former-commit-id: b418eed9356e5de890b70a8ccaa93ee1abbd30bf Former-commit-id: e06310cdc83cd1c614e523f33558d2cb303ca81f [formerly 20341d1ed3372bfe16f777a177710894ca29f378] Former-commit-id: 1795ddf1c595363c49c3d6530e2a552aa7906edd Former-commit-id: 38c0384164faa36103bc9ee5d881cdacf367bbb4 Former-commit-id: 0a13e600fb5a8add5a282304dc2f26d35e711572 Former-commit-id: 5845a0b7620bd23f145b02cbe0427eb351792e6a Former-commit-id: a8aeed67fd895c549600e636cf16094197c1891a
44 lines
1.2 KiB
JavaScript
44 lines
1.2 KiB
JavaScript
// Element
|
|
import ElementUI from 'element-ui'
|
|
import 'element-ui/lib/theme-chalk/index.css'
|
|
// flex 布局库
|
|
import 'flex.css'
|
|
// 组件
|
|
import '@/components'
|
|
// svg 图标
|
|
import '@/assets/svg-icons'
|
|
// 过滤器
|
|
import d2VueFiltersDateModule from '@/filters/module.date'
|
|
// 功能插件
|
|
import pluginError from '@/plugin/error'
|
|
import pluginExport from '@/plugin/export'
|
|
import pluginImport from '@/plugin/import'
|
|
import pluginLog from '@/plugin/log'
|
|
import pluginOpen from '@/plugin/open'
|
|
|
|
export default {
|
|
async install (Vue, options) {
|
|
// 设置为 false 以阻止 vue 在启动时生成生产提示
|
|
// https://cn.vuejs.org/v2/api/#productionTip
|
|
Vue.config.productionTip = false
|
|
// 当前环境
|
|
Vue.prototype.$env = process.env.NODE_ENV
|
|
// 当前的 baseUrl
|
|
Vue.prototype.$baseUrl = process.env.BASE_URL
|
|
// 当前版本
|
|
Vue.prototype.$version = process.env.VUE_APP_VERSION
|
|
// 构建时间
|
|
Vue.prototype.$buildTime = process.env.VUE_APP_BUILD_TIME
|
|
// Element
|
|
Vue.use(ElementUI)
|
|
// 过滤器 日期模块
|
|
Vue.use(d2VueFiltersDateModule)
|
|
// 插件
|
|
Vue.use(pluginError)
|
|
Vue.use(pluginExport)
|
|
Vue.use(pluginImport)
|
|
Vue.use(pluginLog)
|
|
Vue.use(pluginOpen)
|
|
}
|
|
}
|