|
@@ -3,6 +3,9 @@ import '@/assets/styles/index.scss'
|
|
|
import 'element-plus/dist/index.css'
|
|
|
// element dark css
|
|
|
import 'element-plus/theme-chalk/dark/css-vars.css'
|
|
|
+
|
|
|
+import * as ElementPlusIconsVue from '@element-plus/icons-vue'
|
|
|
+
|
|
|
import { createApp } from 'vue'
|
|
|
import App from './App.vue'
|
|
|
import { setupRouter } from '@/router'
|
|
@@ -14,6 +17,9 @@ const pinia = createPinia()
|
|
|
// 创建实例
|
|
|
const setupAll = async () => {
|
|
|
const app = createApp(App)
|
|
|
+ for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
|
|
|
+ app.component(key, component)
|
|
|
+ }
|
|
|
setupRouter(app)
|
|
|
app.use(ContextMenu)
|
|
|
// setupAuthRoutes()
|