2018-08-22 10:24:02 +08:00
|
|
|
// 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'
|
2019-03-10 09:28:21 +08:00
|
|
|
|
2018-08-22 10:24:02 +08:00
|
|
|
// 功能插件
|
|
|
|
|
import pluginError from '@/plugin/error'
|
2018-08-22 10:48:00 +08:00
|
|
|
import pluginLog from '@/plugin/log'
|
|
|
|
|
import pluginOpen from '@/plugin/open'
|
2018-08-22 10:24:02 +08:00
|
|
|
|
2018-08-22 09:13:26 +08:00
|
|
|
export default {
|
2018-09-10 16:12:02 +08:00
|
|
|
async install (Vue, options) {
|
2018-12-14 11:16:10 +08:00
|
|
|
// 设置为 false 以阻止 vue 在启动时生成生产提示
|
|
|
|
|
// https://cn.vuejs.org/v2/api/#productionTip
|
2018-11-02 13:21:54 +08:00
|
|
|
Vue.config.productionTip = false
|
|
|
|
|
// 当前环境
|
|
|
|
|
Vue.prototype.$env = process.env.NODE_ENV
|
|
|
|
|
// 当前的 baseUrl
|
|
|
|
|
Vue.prototype.$baseUrl = process.env.BASE_URL
|
2018-12-14 11:16:10 +08:00
|
|
|
// 当前版本
|
|
|
|
|
Vue.prototype.$version = process.env.VUE_APP_VERSION
|
|
|
|
|
// 构建时间
|
|
|
|
|
Vue.prototype.$buildTime = process.env.VUE_APP_BUILD_TIME
|
2018-08-22 10:24:02 +08:00
|
|
|
// Element
|
2018-11-02 13:21:54 +08:00
|
|
|
Vue.use(ElementUI)
|
2018-08-22 10:24:02 +08:00
|
|
|
// 插件
|
|
|
|
|
Vue.use(pluginError)
|
2018-08-22 10:48:00 +08:00
|
|
|
Vue.use(pluginLog)
|
|
|
|
|
Vue.use(pluginOpen)
|
2018-08-22 09:13:26 +08:00
|
|
|
}
|
|
|
|
|
}
|