Commit e354b6d3 authored by Filipa Lacerda's avatar Filipa Lacerda

Use vue .prevent to prevent the click

parent 9803579e
...@@ -46,8 +46,6 @@ export default { ...@@ -46,8 +46,6 @@ export default {
}, },
methods: { methods: {
changePage(e) { changePage(e) {
e.preventDefault();
if (e.target.parentElement.classList.contains('disabled')) return; if (e.target.parentElement.classList.contains('disabled')) return;
const text = e.target.innerText; const text = e.target.innerText;
...@@ -134,7 +132,7 @@ export default { ...@@ -134,7 +132,7 @@ export default {
active: item.active, active: item.active,
disabled: item.disabled disabled: item.disabled
}"> }">
<a @click="changePage($event)">{{item.title}}</a> <a @click.prevent="changePage($event)">{{item.title}}</a>
</li> </li>
</ul> </ul>
</div> </div>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment