src/main.ts
@@ -7,13 +7,16 @@ import other from '/@/utils/other'; import ElementPlus from 'element-plus'; import * as ElementPlusIconsVue from '@element-plus/icons-vue' import 'element-plus/dist/index.css'; import '/@/theme/index.scss'; import mitt from 'mitt'; import VueGridLayout from 'vue-grid-layout'; const app = createApp(App); for (const [key, component] of Object.entries(ElementPlusIconsVue)) { app.component(key, component) } directive(app); other.elSvg(app);