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

This commit is contained in:
Andrew Sayman authored and GitHub committed 2022-02-24 17:16:49 +08:00
1 parent 7414b382e3
commit 188b49ec76
1 file changed
+1 -1
+1 -1
View File
@@ -9,7 +9,7 @@ import 'uno.css'
const app = createApp(App) const app = createApp(App)
const router = createRouter({ const router = createRouter({
history: createWebHistory(), history: createWebHistory(import.meta.env.BASE_URL),
routes, routes,
}) })
app.use(router) app.use(router)