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.
pull/4603/head
Tim Pfeifer 2023-10-12 09:37:30 +02:00 committed by GitHub
parent 7e3f513a35
commit 7bcf5afbed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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>