fix: refs #8381 update travel data fetching to use correct URL and include necessary fields
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
parent
7e1482dd3a
commit
9a29e7e2fd
|
@ -20,9 +20,10 @@ const router = useRouter();
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
const { notify } = useNotify();
|
const { notify } = useNotify();
|
||||||
const { store: travelStore, fetch: fetchTravel } = useArrayData('SingleTravel', {
|
const { store: travelStore, fetch: fetchTravel } = useArrayData('SingleTravel', {
|
||||||
url: 'Travel',
|
url: 'Travels',
|
||||||
limit: 1,
|
limit: 1,
|
||||||
filter: {
|
filter: {
|
||||||
|
fields: ['id', 'agencyModeFk'],
|
||||||
where: { id: route.params.id },
|
where: { id: route.params.id },
|
||||||
},
|
},
|
||||||
// Si quisieras guardar en la URL, podrías usar searchUrl: 'travelSearch'
|
// Si quisieras guardar en la URL, podrías usar searchUrl: 'travelSearch'
|
||||||
|
@ -152,7 +153,7 @@ const removeThermograph = async (id) => {
|
||||||
notify(t('Thermograph removed'), 'positive');
|
notify(t('Thermograph removed'), 'positive');
|
||||||
};
|
};
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
fetchTravel();
|
fetchTravel({});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue