删除初始化时设置全局尺寸的代码

Former-commit-id: 80bdb56c060ef778aa33b096bd3f02c6a40cb940 [formerly 80bdb56c060ef778aa33b096bd3f02c6a40cb940 [formerly 80bdb56c060ef778aa33b096bd3f02c6a40cb940 [formerly 80bdb56c060ef778aa33b096bd3f02c6a40cb940 [formerly c5f5a5839e8c8290f95f9eb58a6b7083a4d69c48 [formerly e022c140a93d7b8e0bed6d7efe3c305479add9a9]]]]]
Former-commit-id: c20b43540e68f75e28cd2897457302ee665d8615
Former-commit-id: e5b0cf94eb857a1dd70bc76d7ac9f3d87694e6d8
Former-commit-id: ba8c19df70cb04ff53cba4d5e6cb680d57a3af60 [formerly afb9171556709c0bddf2d6f664ef24f9e3e55e88]
Former-commit-id: f03b78a3fc2a1508177267a16149c87460bc98ec
Former-commit-id: 2b50ca5b4b6459635598d513dd49c58f3e2fe9cc
Former-commit-id: cada5f8d3029e4fcdb00fc9fd6392284c456ed0b
Former-commit-id: 7bdc74f5cee467a4395561b6d74cb14be1859ee6
Former-commit-id: d143d99c5241d2bc1c7f7aee8cb1a791473c88fc
This commit is contained in:
liyang
2018-11-02 13:21:54 +08:00
parent 1351a0a8ae
commit 43747ad006

View File

@@ -3,8 +3,6 @@ import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
// flex 布局库
import 'flex.css'
// store
import store from '@/store/index'
// 组件
import '@/components'
// svg 图标
@@ -18,30 +16,19 @@ import pluginOpen from '@/plugin/open'
export default {
async install (Vue, options) {
// 获得用户设置的全局尺寸
const size = await store.dispatch('d2admin/db/get', {
dbName: 'sys',
path: 'size.value',
defaultValue: '',
user: true
})
// 设置为 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
// Element
Vue.use(ElementUI, {
size
})
Vue.use(ElementUI)
// 插件
Vue.use(pluginError)
Vue.use(pluginExport)
Vue.use(pluginImport)
Vue.use(pluginLog)
Vue.use(pluginOpen)
// 设置为 false 以阻止 vue 在启动时生成生产提示。
// https://cn.vuejs.org/v2/api/#productionTip
Vue.config.productionTip = false
// 当前环境
Vue.prototype.$env = process.env.NODE_ENV
// 当前的 baseUrl
// 简化代码中 process.env.BASE_URL 取值
Vue.prototype.$baseUrl = process.env.BASE_URL
}
}