fix: refs #8242 workerDepartmentTree bug
gitea/salix-front/pipeline/pr-test This commit looks good
Details
gitea/salix-front/pipeline/pr-test This commit looks good
Details
This commit is contained in:
parent
82faba62ca
commit
2427fed2e8
|
@ -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);
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue