Replace generic a.href to RouterLink
This commit is contained in:
parent
4cc6c79180
commit
5d7741ee3a
2 changed files with 9 additions and 14 deletions
|
@ -1,8 +1,3 @@
|
||||||
<script setup lang="ts">
|
|
||||||
const pathname = location.pathname
|
|
||||||
</script>
|
|
||||||
|
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<nav class="left drawer primary-text">
|
<nav class="left drawer primary-text">
|
||||||
<header>
|
<header>
|
||||||
|
@ -11,24 +6,24 @@ const pathname = location.pathname
|
||||||
<h6>Toloka2Web MD3</h6>
|
<h6>Toloka2Web MD3</h6>
|
||||||
</nav>
|
</nav>
|
||||||
</header>
|
</header>
|
||||||
<a :class="(pathname == '/') ? 'active' : ''" href="/">
|
<RouterLink :class="($route.path == '/') ? 'active' : ''" to="/">
|
||||||
<i>home</i>
|
<i>home</i>
|
||||||
<div>Головна</div>
|
<div>Головна</div>
|
||||||
</a>
|
</RouterLink>
|
||||||
<a :class="(pathname == '/add') ? 'active' : ''" href="/add">
|
<RouterLink :class="($route.path == '/add') ? 'active' : ''" to="/add">
|
||||||
<i>add</i>
|
<i>add</i>
|
||||||
<div>Додати</div>
|
<div>Додати</div>
|
||||||
</a>
|
</RouterLink>
|
||||||
<a :class="(pathname == '/settings') ? 'active' : ''" href="/settings">
|
<RouterLink :class="($route.path == '/settings') ? 'active' : ''" to="/settings">
|
||||||
<i>settings</i>
|
<i>settings</i>
|
||||||
<div>Налаштування</div>
|
<div>Налаштування</div>
|
||||||
</a>
|
</RouterLink>
|
||||||
<div class="divider small-margin"></div>
|
<div class="divider small-margin"></div>
|
||||||
<label>Інше</label>
|
<label>Інше</label>
|
||||||
<a :class="(pathname == '/about') ? 'active' : ''" href="/about">
|
<RouterLink :class="($route.path == '/about') ? 'active' : ''" to="/about">
|
||||||
<i>person</i>
|
<i>person</i>
|
||||||
<div>Про застосунок</div>
|
<div>Про застосунок</div>
|
||||||
</a>
|
</RouterLink>
|
||||||
</nav>
|
</nav>
|
||||||
<nav class="left m">
|
<nav class="left m">
|
||||||
<header>
|
<header>
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
<article class="secondary-text">
|
<article class="secondary-text">
|
||||||
<a class="row wave"><i>title</i> Toloka2Web v2 Vue Version</a>
|
<a class="row wave"><i>title</i> Toloka2Web v2 Vue Version</a>
|
||||||
<hr>
|
<hr>
|
||||||
<a class="row wave"><i>conversion_path</i> v1.0.1</a>
|
<a class="row wave"><i>conversion_path</i> v1.0.2</a>
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
|
|
Loading…
Reference in a new issue