0👍
ok so you will want to change the way your buttons work then. e.g. add a @click
method to them instead of a href
example
<button @click="previousLink">
...icon
</button>
<script>
export default {
methods: {
previousLink() {
if (this.prev_page_url === null) {
window.location.href = this.last_page_url;
} else {
window.location.href = this.prev_page_url;
}
}
}
}
</script>
- [Vuejs]-Vue 3 router link inside a clickable table row
- [Vuejs]-How to read the dynamic objects data present in JSON?
Source:stackexchange.com