26 lines
634 B
TypeScript
26 lines
634 B
TypeScript
import { createApp } from 'vue'
|
|
import ElementPlus from 'element-plus'
|
|
import 'element-plus/dist/index.css'
|
|
/**
|
|
* 全局主题样式:
|
|
* - 仅覆盖样式,确保 web-admin 视觉风格与 life-script 对齐
|
|
*/
|
|
import './styles/life-script-theme.scss'
|
|
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
|
|
import App from './App.vue'
|
|
import router from './router'
|
|
import pinia from './stores'
|
|
|
|
const app = createApp(App)
|
|
|
|
// 注册所有图标
|
|
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
|
|
app.component(key, component)
|
|
}
|
|
|
|
app.use(ElementPlus)
|
|
app.use(router)
|
|
app.use(pinia)
|
|
|
|
app.mount('#app')
|