| | |
| | | import './permission' // permission control
|
| | |
|
| | | import { useDict } from '@/utils/dict'
|
| | | import { parseTime, resetForm, addDateRange, handleTree, selectDictLabel } from '@/utils/ruoyi'
|
| | | import { parseTime, resetForm, addDateRange, handleTree, selectDictLabel, selectDictLabels } from '@/utils/ruoyi'
|
| | |
|
| | | // 分页组件
|
| | | import Pagination from '@/components/Pagination'
|
| | |
| | | app.config.globalProperties.handleTree = handleTree
|
| | | app.config.globalProperties.addDateRange = addDateRange
|
| | | app.config.globalProperties.selectDictLabel = selectDictLabel
|
| | | app.config.globalProperties.selectDictLabels = selectDictLabels
|
| | |
|
| | | // 全局组件挂载
|
| | | app.component('DictTag', DictTag)
|
| | |
| | | // 使用element-plus 并且设置全局的大小
|
| | | app.use(ElementPlus, {
|
| | | locale: locale,
|
| | | size: Cookies.get('size') || 'medium'
|
| | | // 支持 large、default、small
|
| | | size: Cookies.get('size') || 'default'
|
| | | })
|
| | |
|
| | | app.mount('#app')
|