fix: use the vite BASE_URL when creating the web history (#11)

This commit is contained in:
Andrew Sayman 2022-02-24 04:16:49 -05:00 committed by GitHub
parent 7414b382e3
commit 188b49ec76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,7 +9,7 @@ import 'uno.css'
const app = createApp(App)
const router = createRouter({
history: createWebHistory(),
history: createWebHistory(import.meta.env.BASE_URL),
routes,
})
app.use(router)