feat: improve map and upload experience

This commit is contained in:
2026-05-21 16:54:38 +08:00
parent cb2581afb2
commit 2b7f393d7c
6 changed files with 386 additions and 85 deletions
+5 -1
View File
@@ -3,19 +3,23 @@ import { createPinia } from 'pinia'
import App from './App.vue'
import router from './router'
import { useAuthStore } from './stores/auth'
import { enableCanvasReadbackHint } from './lib/canvas'
import './style.css'
enableCanvasReadbackHint()
const app = createApp(App)
const pinia = createPinia()
app.use(pinia)
app.use(router)
const authStore = useAuthStore()
if (window.location.pathname === '/auth/confirm') {
app.use(router)
app.mount('#app')
} else {
authStore.initialize().then(() => {
app.use(router)
app.mount('#app')
})
}