vue router pour l'history

This commit is contained in:
Valentin
2024-08-05 21:08:09 +02:00
parent a05f81c2d9
commit f61c81c714
8 changed files with 419 additions and 35 deletions

View File

@@ -4,6 +4,7 @@ import '../scss/main.scss'
import Modale from './vuejs/Modale.vue'
import { useContentStore } from './stores/content';
import router from './router/router';
// Working with the history API
// https://developer.mozilla.org/en-US/docs/Web/API/History_API/Working_with_the_History_API
@@ -47,7 +48,7 @@ import { useContentStore } from './stores/content';
}
function initVueContentModale(){
const app = createApp(Modale).use(createPinia());
const app = createApp(Modale).use(createPinia()).use(router);
const store = useContentStore();
app.mount('#content-modale');