27 lines
510 B
TypeScript
27 lines
510 B
TypeScript
import './assets/main.css'
|
|||
|
|
|
||
|
|
import { createApp } from 'vue'
|
||
|
|
import ElementPlus from 'element-plus'
|
||
|
|
import 'element-plus/dist/index.css'
|
||
|
|
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')
|