added router for profile

This commit is contained in:
Kostya
2023-11-25 22:29:44 +03:00
parent 5efe622a48
commit 73a7d8d161
2 changed files with 2 additions and 2 deletions

View File

@@ -7,7 +7,7 @@
<div class="header__nav"> <div class="header__nav">
<nav> <nav>
<a href="#" @click="$router.push({ name: 'home' })" class="header__nav--now">Главная</a> <a href="#" @click="$router.push({ name: 'home' })" class="header__nav--now">Главная</a>
<a href="#">Профиль</a> <a href="#" @click="$router.push({ name: 'profile' })">Профиль</a>
<a href="#">Помощь</a> <a href="#">Помощь</a>
</nav> </nav>
</div> </div>

View File

@@ -7,6 +7,6 @@ export default createRouter({
history: createWebHistory(), history: createWebHistory(),
routes: [ routes: [
{ path: '/', component: HomePage, name: 'home' }, { path: '/', component: HomePage, name: 'home' },
{ path: '/', component: ProfilePage, name: 'profile' } { path: '/profile', component: ProfilePage, name: 'profile' }
] ]
}) })