|
|
import { createApp } from 'vue' |
|
|
import { createPinia } from 'pinia' |
|
|
import ElementPlus from 'element-plus' |
|
|
import zhCn from 'element-plus/dist/locale/zh-cn.mjs' |
|
|
import 'element-plus/dist/index.css' |
|
|
import 'element-plus/theme-chalk/dark/css-vars.css' |
|
|
import App from './App.vue' |
|
|
import router from './router' |
|
|
import { useUserStore } from './stores/user' |
|
|
import './assets/styles/main.css' |
|
|
import './assets/styles/global.css' |
|
|
|
|
|
|
|
|
const app = createApp(App) |
|
|
|
|
|
|
|
|
const pinia = createPinia() |
|
|
app.use(pinia) |
|
|
|
|
|
|
|
|
app.use(router) |
|
|
|
|
|
|
|
|
app.use(ElementPlus, { |
|
|
locale: zhCn |
|
|
}) |
|
|
|
|
|
|
|
|
const userStore = useUserStore() |
|
|
userStore.setupAxiosInterceptors() |
|
|
|
|
|
|
|
|
app.mount('#app') |
|
|
|