25 lines
603 B
TypeScript
25 lines
603 B
TypeScript
import { createApp } from 'vue'
|
|
import App from './App.vue'
|
|
|
|
// 路由
|
|
import router from './router'
|
|
// element-ui
|
|
import ElementPlus from 'element-plus'
|
|
// element-ui css
|
|
import 'element-plus/dist/index.css'
|
|
import 'element-plus/theme-chalk/index.css'
|
|
// pinia持久化
|
|
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
|
|
// pinia
|
|
import { createPinia } from 'pinia'
|
|
// icon
|
|
import './assets/css/iconfont/iconfont.css'
|
|
|
|
|
|
const pinia = createPinia()
|
|
pinia.use(piniaPluginPersistedstate)
|
|
const app = createApp(App)
|
|
app.use(router)
|
|
app.use(ElementPlus)
|
|
app.use(pinia)
|
|
app.mount('#app')
|