2026-07-21 15:40:49 +08:00
|
|
|
import './assets/main.css'
|
|
|
|
|
|
|
|
|
|
import { createApp } from 'vue'
|
|
|
|
|
import ElementPlus from 'element-plus'
|
|
|
|
|
import 'element-plus/dist/index.css'
|
2026-08-27 14:45:10 +08:00
|
|
|
import 'element-plus/theme-chalk/dark/css-vars.css'
|
2026-07-21 15:40:49 +08:00
|
|
|
import { createPinia } from 'pinia'
|
|
|
|
|
|
|
|
|
|
import App from './App.vue'
|
|
|
|
|
import router from './router'
|
|
|
|
|
|
|
|
|
|
import { client } from "./api/generated/client.gen"
|
|
|
|
|
|
|
|
|
|
const API_BASE_URL = import.meta.env.VITE_API_BASE_URL
|
|
|
|
|
|
|
|
|
|
if (API_BASE_URL) {
|
|
|
|
|
client.setConfig({
|
|
|
|
|
baseUrl: API_BASE_URL
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const app = createApp(App)
|
|
|
|
|
|
|
|
|
|
app.use(createPinia())
|
|
|
|
|
app.use(router)
|
|
|
|
|
|
|
|
|
|
app.mount('#app')
|