mirror of
https://github.com/yawaflua/LuckyDiamond.git
synced 2025-12-10 12:19:31 +02:00
fixed route vision in header component
This commit is contained in:
@@ -107,8 +107,8 @@ export default {
|
||||
</div>
|
||||
<div class="header__nav">
|
||||
<nav>
|
||||
<a href="#" @click="$router.push({ name: 'home' })" :class="{ 'header__nav--now' : route === 'home' }">Главная</a>
|
||||
<a href="#" @click="$router.push({ name: 'profile' })" :class="{ 'header__nav--now' : route === 'profile' }">Профиль</a>
|
||||
<a href="#" @click="$router.push({ name: 'home' })" :class="{ 'header__nav--now' : $route === 'home' }">Главная</a>
|
||||
<a href="#" @click="$router.push({ name: 'profile' })" :class="{ 'header__nav--now' : $route === 'profile' }">Профиль</a>
|
||||
<a href="#">Помощь</a>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user