diff --git a/src/views/main/Header.vue b/src/views/main/Header.vue index 11f0e5f..51409b8 100644 --- a/src/views/main/Header.vue +++ b/src/views/main/Header.vue @@ -134,7 +134,7 @@ - + Activer votre page diff --git a/src/views/profile/ProfilePage.vue b/src/views/profile/ProfilePage.vue index 27547bf..b6d6844 100644 --- a/src/views/profile/ProfilePage.vue +++ b/src/views/profile/ProfilePage.vue @@ -78,8 +78,13 @@ import ManageAccount from "@/views/profile/management/ManageAccount.vue"; import CreatorPage from "@/views/profile/creators/CreatorPage.vue"; import AccountPage from "@/views/profile/account/AccountPage.vue"; import AccountSecurity from "@/views/profile/security/AccountSecurity.vue"; +import {useRoute} from "vue-router"; -const currentComponent = ref('AccountPage'); // Default component + +const route = useRoute() +const startingComponent = route.query.target || 'AccountPage' + +const currentComponent = ref(startingComponent); const isDown = ref(false); const startX = ref(0); const scrollLeft = ref(0);