WARMFIX: #8242 - leftMenu_responsive #1504

Merged
jsegarra merged 4 commits from 8242_leftMenu_responsive into test 2025-03-03 08:51:30 +00:00
2 changed files with 2 additions and 12 deletions
Showing only changes of commit 2427fed2e8 - Show all commits

View File

@ -26,7 +26,7 @@ const arrayData = useArrayData(props.dataKey, {
oneRecord: true,
});
onBeforeRouteLeave((to, from) => {
onBeforeRouteLeave(() => {
stateStore.cardDescriptorChangeValue(null);
});
@ -44,9 +44,6 @@ onBeforeMount(async () => {
});
onBeforeRouteUpdate(async (to, from) => {
// if (to.matched.length < from.matched.length) {
// stateStore.cardDescriptorChangeValue(null);
// }
if (hasRouteParam(to.params)) {
const { matched } = router.currentRoute.value;
const { name } = matched.at(-3);

View File

@ -1,16 +1,9 @@
<script setup>
import VnSection from 'src/components/common/VnSection.vue';
import WorkerDepartmentTree from './WorkerDepartmentTree.vue';
</script>
<template>
<VnSection data-key="WorkerDepartment" :search-bar="false">
<template #body>
<div class="flex flex-center q-pa-md">
<WorkerDepartmentTree />
</div>
</template>
</VnSection>
<QPage class="q-pa-md flex justify-center"> <WorkerDepartmentTree /> </QPage>
</template>
<i18n>