Former-commit-id: 022d07c06618417af8e2895dd00fcac3e0238c09 [formerly 022d07c06618417af8e2895dd00fcac3e0238c09 [formerly 022d07c06618417af8e2895dd00fcac3e0238c09 [formerly 022d07c06618417af8e2895dd00fcac3e0238c09 [formerly 3a6388bd7e36b1bbd3d22767b2dc3a4e462402b7 [formerly 15059226e8bd77dcbe7212699c6bab6b6ff9d385]]]]] Former-commit-id: bfa445ba0136208e94ef7244f8bf127d2b186bfd Former-commit-id: d9e3059e625371a01176c7fdcb34a25a5ea247d5 Former-commit-id: f543910387e755b14d40eec2b42eaed43c500d53 [formerly 4d3007385ebb14bf7ec659c68251af6358cc5982] Former-commit-id: 19d3ef449fa36d92f5799987d6cda668c9b3534e Former-commit-id: 91a0cb0497884cd435ff29d6b714e35b22eb9f4d Former-commit-id: 0edac75e2cf32f0001191c3b3e9829bcd081ed66 Former-commit-id: b3cfe8d5c3432d308dad9437de878f4e22008ca7 Former-commit-id: 94ec0467d510f8506c5d5e6da7aa5f377c350cb3
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 d2VueFiltersDate from '@d2-projects/vue-filters-date'
|
|
// 功能插件
|
|
import pluginError from '@/plugin/error'
|
|
import pluginExport from '@d2-projects/vue-table-export'
|
|
import pluginImport from '@d2-projects/vue-table-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(d2VueFiltersDate)
|
|
// 插件
|
|
Vue.use(pluginError)
|
|
Vue.use(pluginExport)
|
|
Vue.use(pluginImport)
|
|
Vue.use(pluginLog)
|
|
Vue.use(pluginOpen)
|
|
}
|
|
}
|