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
parent
7e3f513a35
commit
7bcf5afbed
|
@ -9,7 +9,7 @@
|
||||||
<Menu :model="items">
|
<Menu :model="items">
|
||||||
<template #item="{ label, item, props }">
|
<template #item="{ label, item, props }">
|
||||||
<router-link v-if="item.route" v-slot="routerProps" :to="item.route" custom>
|
<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.icon" />
|
||||||
<span v-bind="props.label">{{ label }}</span>
|
<span v-bind="props.label">{{ label }}</span>
|
||||||
</a>
|
</a>
|
||||||
|
|
Loading…
Reference in New Issue