0
0
Fork 0

refs #6772 fix: claimPhoto reload

This commit is contained in:
Javier Segarra 2024-03-07 10:27:36 +01:00
parent f4ddc7001b
commit 2c29258938
1 changed files with 9 additions and 1 deletions

View File

@ -1,6 +1,6 @@
<script setup> <script setup>
import axios from 'axios'; import axios from 'axios';
import { ref, computed } from 'vue'; import { ref, computed, watch } from 'vue';
import { useQuasar } from 'quasar'; import { useQuasar } from 'quasar';
import { useRouter } from 'vue-router'; import { useRouter } from 'vue-router';
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
@ -144,6 +144,14 @@ function onDrag() {
dragFileTimeout.value = setTimeout(() => (dragFile.value = false), 500); dragFileTimeout.value = setTimeout(() => (dragFile.value = false), 500);
dragFile.value = true; dragFile.value = true;
} }
watch(
() => router.currentRoute.value.params.id,
() => {
claimDmsFilter.value.where.id = router.currentRoute.value.params.id;
claimDmsRef.value.fetch();
}
);
</script> </script>
<template> <template>
<FetchData <FetchData