mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-10 01:12:37 +00:00
fix: navigate to page instead of full page load
When we don't use the Vue router navigate method, the whole page gets reloaded and looses its state.
This commit is contained in:
parent
7e3f513a35
commit
7bcf5afbed
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@
|
|||
<Menu :model="items">
|
||||
<template #item="{ label, item, props }">
|
||||
<router-link v-if="item.route" v-slot="routerProps" :to="item.route" custom>
|
||||
<a :href="routerProps.href" v-bind="props.action">
|
||||
<a :href="routerProps.href" v-bind="props.action" @click="routerProps.navigate">
|
||||
<span v-bind="props.icon" />
|
||||
<span v-bind="props.label">{{ label }}</span>
|
||||
</a>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue