mirror of
https://github.com/yawaflua/LuckyDiamond.git
synced 2025-12-10 12:19:31 +02:00
added router for profile
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
<div class="header__nav">
|
||||
<nav>
|
||||
<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>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
@@ -7,6 +7,6 @@ export default createRouter({
|
||||
history: createWebHistory(),
|
||||
routes: [
|
||||
{ path: '/', component: HomePage, name: 'home' },
|
||||
{ path: '/', component: ProfilePage, name: 'profile' }
|
||||
{ path: '/profile', component: ProfilePage, name: 'profile' }
|
||||
]
|
||||
})
|
||||
Reference in New Issue
Block a user