-
+
@@ -21,7 +18,7 @@ const pageStore = useItem()
-
+
diff --git a/front/src/main.ts b/front/src/main.ts
index 4bfa296..65c4ee3 100644
--- a/front/src/main.ts
+++ b/front/src/main.ts
@@ -5,11 +5,13 @@ import { createWebHistory, createRouter } from 'vue-router'
import './assets/main.scss'
import App from './App.vue'
+import Main from './components/Main/index.vue'
import Gallery from './components/Gallery/index.vue'
import Promo from './components/Promo/index.vue'
const routes = [
{ path: '/', component: Gallery, name: 'home_no' },
+ { path: '/:item', component: Main, name: 'main' },
{ path: '/:item/gallery', component: Gallery, name: 'gallery' },
{ path: '/:item/:target', component: Promo, name: 'scene' },
]
@@ -19,6 +21,17 @@ const router = createRouter({
routes,
})
+router.beforeEach((to, from, next) => {
+ // This function will be called before each route change
+ console.log('Navigating from', from.fullPath, 'to', to.fullPath);
+
+ // You can perform any additional logic here
+
+ // Make sure to call next() to continue with the navigation
+ next();
+});
+
+
const pinia = createPinia()
const app = createApp(App)