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

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>