恢复设置
Former-commit-id: 7d1d4807b8eafd3c988dec37bd316baf80ec10f5 [formerly 7d1d4807b8eafd3c988dec37bd316baf80ec10f5 [formerly 7d1d4807b8eafd3c988dec37bd316baf80ec10f5 [formerly 7d1d4807b8eafd3c988dec37bd316baf80ec10f5 [formerly fda58ba8fa5c3cdfae1de4366df5d1b3d22507b3 [formerly 481965dd045bdd23f0f3c652adb796565ecbac05]]]]] Former-commit-id: 00db3f5c336c4f30dca75b8f99781d93633cf153 Former-commit-id: d7ce382da9d9f9d2cd11942c4a2af168a4e6c56b Former-commit-id: 0fb053cd87d684266aca8b4853697b1c1053368a [formerly acb361a704ea067cf9d8e301d32ae556fce40bbe] Former-commit-id: 0d527215fb720240156f1c0463134c6ed362133d Former-commit-id: 227fe2db815a7d560fd526129b7756270f00b2ec Former-commit-id: 6db371b0ba8b11fb9f71aa1e852cc51bc649c88d Former-commit-id: 460c5ef5fadb48c1ae6885e145612c73da958735 Former-commit-id: 1de24c9653769294fcf3bf096f5a40b317370c7e
This commit is contained in:
@@ -3,6 +3,8 @@ 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 图标
|
||||
@@ -15,9 +17,19 @@ import pluginLog from '@/plugin/log'
|
||||
import pluginOpen from '@/plugin/open'
|
||||
|
||||
export default {
|
||||
install (Vue, options) {
|
||||
async install (Vue, options) {
|
||||
// 获得用户设置的全局尺寸
|
||||
const size = await store.dispatch('d2admin/db/get', {
|
||||
dbName: 'sys',
|
||||
path: 'size.value',
|
||||
defaultValue: '',
|
||||
user: true
|
||||
})
|
||||
console.log('size: ', size)
|
||||
// Element
|
||||
Vue.use(ElementUI)
|
||||
Vue.use(ElementUI, {
|
||||
size
|
||||
})
|
||||
// 插件
|
||||
Vue.use(pluginError)
|
||||
Vue.use(pluginExport)
|
||||
|
||||
Reference in New Issue
Block a user