forked from verdnatura/salix-front
refs #6772 fix: claimPhoto reload
This commit is contained in:
parent
f4ddc7001b
commit
2c29258938
|
@ -1,6 +1,6 @@
|
|||
<script setup>
|
||||
import axios from 'axios';
|
||||
import { ref, computed } from 'vue';
|
||||
import { ref, computed, watch } from 'vue';
|
||||
import { useQuasar } from 'quasar';
|
||||
import { useRouter } from 'vue-router';
|
||||
import { useI18n } from 'vue-i18n';
|
||||
|
@ -144,6 +144,14 @@ function onDrag() {
|
|||
dragFileTimeout.value = setTimeout(() => (dragFile.value = false), 500);
|
||||
dragFile.value = true;
|
||||
}
|
||||
|
||||
watch(
|
||||
() => router.currentRoute.value.params.id,
|
||||
() => {
|
||||
claimDmsFilter.value.where.id = router.currentRoute.value.params.id;
|
||||
claimDmsRef.value.fetch();
|
||||
}
|
||||
);
|
||||
</script>
|
||||
<template>
|
||||
<FetchData
|
||||
|
|
Loading…
Reference in New Issue