mirror of
https://github.com/yawaflua/LuckyDiamond.git
synced 2025-12-10 04:09:29 +02:00
added router for profile
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
@@ -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' }
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
Reference in New Issue
Block a user