fix: refs #8242 workerDepartmentTree bug
gitea/salix-front/pipeline/pr-test This commit looks good Details

This commit is contained in:
Javier Segarra 2025-02-26 11:54:14 +01:00
parent 82faba62ca
commit 2427fed2e8
2 changed files with 2 additions and 12 deletions

View File

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

View File

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