feat: improve map and upload experience
This commit is contained in:
+5
-1
@@ -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')
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user