fix: hash history

This commit is contained in:
Florian Sylvain
2024-10-10 02:18:05 +02:00
parent 87e894ab50
commit f8a75e9cdd
2 changed files with 8 additions and 10 deletions
+2 -2
View File
@@ -1,8 +1,8 @@
import { createRouter, createWebHistory } from 'vue-router' import { createRouter, createWebHashHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue' import HomeView from '../views/HomeView.vue'
const router = createRouter({ const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL), history: createWebHashHistory(import.meta.env.BASE_URL),
routes: [ routes: [
{ {
path: '/', path: '/',
+6 -8
View File
@@ -5,12 +5,10 @@ import vue from '@vitejs/plugin-vue'
// https://vitejs.dev/config/ // https://vitejs.dev/config/
export default defineConfig({ export default defineConfig({
plugins: [ plugins: [vue()],
vue(), resolve: {
], alias: {
resolve: { '@': fileURLToPath(new URL('./src', import.meta.url))
alias: { }
'@': fileURLToPath(new URL('./src', import.meta.url)) }
}
}
}) })