refactor: 重构API服务与全局状态管理 style: 优化UI样式与布局 fix: 修复文章列表与详情页的显示问题 docs: 更新类型定义与注释 chore: 更新依赖包与配置文件
30 lines
702 B
JavaScript
30 lines
702 B
JavaScript
import { createApp } from 'vue'
|
|
import { createPinia } from 'pinia'
|
|
import App from './App.vue'
|
|
import Router from './router/Router'
|
|
|
|
import ElementPlus from 'element-plus'
|
|
import 'element-plus/dist/index.css'
|
|
|
|
import UndrawUi from 'undraw-ui'
|
|
import 'undraw-ui/dist/style.css'
|
|
|
|
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
|
|
import './styles/MainLayout.css'
|
|
|
|
|
|
// 创建Pinia实例
|
|
const pinia = createPinia()
|
|
|
|
const app = createApp(App)
|
|
app.use(UndrawUi)
|
|
app.use(Router)
|
|
app.use(ElementPlus)
|
|
app.use(pinia) // 添加Pinia支持
|
|
|
|
// 注册所有Element Plus图标
|
|
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
|
|
app.component(key, component)
|
|
}
|
|
|
|
app.mount('#app') |