28 lines
796 B
JavaScript
28 lines
796 B
JavaScript
import { createApp } from 'vue';
|
|
import { createPinia } from 'pinia';
|
|
import ElementPlus from 'element-plus';
|
|
import * as ElementPlusIconsVue from '@element-plus/icons-vue';
|
|
import 'element-plus/dist/index.css';
|
|
import router from './router';
|
|
import App from './App.vue';
|
|
import './styles/index.css';
|
|
import AppIcon from './components/base/AppIcon.vue';
|
|
import LucideIcon from './components/base/LucideIcon.vue';
|
|
|
|
const app = createApp(App);
|
|
// 注册所有 Element Plus 图标
|
|
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
|
|
app.component(key, component);
|
|
}
|
|
|
|
// 注册自定义图标组件
|
|
app.component('AppIcon', AppIcon);
|
|
app.component('LucideIcon', LucideIcon);
|
|
|
|
const pinia = createPinia();
|
|
app.use(pinia);
|
|
app.use(router);
|
|
app.use(ElementPlus);
|
|
|
|
app.mount('#app');
|