feat:rename subtree from frontend-vue to frontend
This commit is contained in:
23
frontend/src/main.ts
Normal file
23
frontend/src/main.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
import { createApp } from 'vue'
|
||||
|
||||
import App from './App.vue'
|
||||
import router from './router'
|
||||
import './styles/index.scss'
|
||||
import './styles/tailwindcss.css'
|
||||
import 'element-plus/theme-chalk/dark/css-vars.css'
|
||||
import 'virtual:svg-icons-register'
|
||||
import { initService } from '@/utils/request.ts'
|
||||
import { setupStore, useConfigStore } from '@/stores'
|
||||
|
||||
async function init() {
|
||||
const app = createApp(App)
|
||||
setupStore(app)
|
||||
initService()
|
||||
const configStore = useConfigStore()
|
||||
await configStore.initConfig()
|
||||
document.title = configStore.config.centerTitle
|
||||
app.use(router)
|
||||
app.mount('#app')
|
||||
}
|
||||
|
||||
void init()
|
||||
Reference in New Issue
Block a user