|
@@ -20,7 +20,7 @@ import { download } from '@/utils/request'
|
|
|
import 'virtual:svg-icons-register'
|
|
|
import SvgIcon from '@/components/SvgIcon'
|
|
|
import elementIcons from '@/components/SvgIcon/svgicon'
|
|
|
-
|
|
|
+import * as ElementPlusIconsVue from '@element-plus/icons-vue'
|
|
|
import './permission' // permission control
|
|
|
|
|
|
import { useDict } from '@/utils/dict'
|
|
@@ -44,7 +44,9 @@ import TreeSelect from '@/components/TreeSelect'
|
|
|
import DictTag from '@/components/DictTag'
|
|
|
|
|
|
const app = createApp(App)
|
|
|
-
|
|
|
+// for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
|
|
|
+// app.component(key, component)
|
|
|
+// }
|
|
|
// 全局方法挂载
|
|
|
app.config.globalProperties.useDict = useDict
|
|
|
app.config.globalProperties.download = download
|
|
@@ -79,5 +81,4 @@ app.use(ElementPlus, {
|
|
|
// 支持 large、default、small
|
|
|
size: Cookies.get('size') || 'default'
|
|
|
})
|
|
|
-
|
|
|
app.mount('#app')
|