wireguard-dashboard-admin/src/main.js

20 lines
327 B
JavaScript
Raw Normal View History

2022-01-08 17:20:46 +08:00
import '@/styles/index.scss'
import 'uno.css'
import { createApp } from 'vue'
import { setupRouter } from '@/router'
import { setupStore } from '@/store'
2022-03-28 18:31:32 +08:00
import App from './App.vue'
2022-01-08 17:20:46 +08:00
2022-03-28 18:31:32 +08:00
async function setupApp() {
2022-01-08 17:20:46 +08:00
const app = createApp(App)
setupStore(app)
2022-03-28 18:31:32 +08:00
await setupRouter(app)
2022-01-08 17:20:46 +08:00
app.mount('#app', true)
}
2022-03-28 18:31:32 +08:00
setupApp()