|
@@ -1,4 +1,4 @@
|
|
|
-import { createApp } from 'vue'
|
|
|
+import {createApp} from 'vue'
|
|
|
|
|
|
import Cookies from 'js-cookie'
|
|
|
|
|
@@ -7,15 +7,13 @@ import 'element-plus/dist/index.css'
|
|
|
import locale from 'element-plus/es/locale/lang/zh-cn'
|
|
|
|
|
|
import '@/assets/styles/index.scss' // global css
|
|
|
-
|
|
|
import App from './App'
|
|
|
import store from './store'
|
|
|
import router from './router'
|
|
|
import directive from './directive' // directive
|
|
|
-
|
|
|
// 注册指令
|
|
|
import plugins from './plugins' // plugins
|
|
|
-import { download } from '@/utils/request'
|
|
|
+import {download} from '@/utils/request'
|
|
|
|
|
|
// svg图标
|
|
|
import 'virtual:svg-icons-register'
|
|
@@ -23,10 +21,9 @@ import SvgIcon from '@/components/SvgIcon'
|
|
|
import elementIcons from '@/components/SvgIcon/svgicon'
|
|
|
|
|
|
import './permission' // permission control
|
|
|
-
|
|
|
-import { useDict } from '@/utils/dict'
|
|
|
-import { parseTime, resetForm, addDateRange, handleTree, selectDictLabel, selectDictLabels } from '@/utils/ruoyi'
|
|
|
-
|
|
|
+import {useDict} from '@/utils/dict'
|
|
|
+import {addDateRange, handleTree, parseTime, resetForm, selectDictLabel, selectDictLabels} from '@/utils/ruoyi'
|
|
|
+import {getConfigKey} from "@/api/system/config.js"
|
|
|
// 分页组件
|
|
|
import Pagination from '@/components/Pagination'
|
|
|
// 自定义表格工具组件
|
|
@@ -55,6 +52,7 @@ app.config.globalProperties.handleTree = handleTree
|
|
|
app.config.globalProperties.addDateRange = addDateRange
|
|
|
app.config.globalProperties.selectDictLabel = selectDictLabel
|
|
|
app.config.globalProperties.selectDictLabels = selectDictLabels
|
|
|
+app.config.globalProperties.getConfigKey = getConfigKey
|
|
|
|
|
|
// 全局组件挂载
|
|
|
app.component('DictTag', DictTag)
|
|
@@ -76,9 +74,9 @@ directive(app)
|
|
|
|
|
|
// 使用element-plus 并且设置全局的大小
|
|
|
app.use(ElementPlus, {
|
|
|
- locale: locale,
|
|
|
- // 支持 large、default、small
|
|
|
- size: Cookies.get('size') || 'default'
|
|
|
+ locale: locale,
|
|
|
+ // 支持 large、default、small
|
|
|
+ size: Cookies.get('size') || 'default'
|
|
|
})
|
|
|
|
|
|
app.mount('#app')
|