| 1234567891011121314151617181920212223242526 |
- import { createApp } from 'vue'
- import { createPinia } from 'pinia'
- import App from './App.vue'
- import router, { setRouter } from './router'
- import '@/router/permission'
- import { View, Setting, User, Lock, Expand, Fold, Refresh } from '@element-plus/icons-vue'
- import './assets/main.css'
- import 'element-plus/dist/index.css'
- const app = createApp(App)
- // 注册需要的图标组件
- app.component('View', View)
- app.component('Setting', Setting)
- app.component('User', User)
- app.component('Lock', Lock)
- app.component('Expand', Expand)
- app.component('Fold', Fold)
- app.component('Refresh', Refresh)
- app.use(createPinia())
- setRouter()
- app.use(router)
- app.mount('#app')
|