7383-testToMaster #370

Merged
alexm merged 365 commits from 7383-testToMaster into master 2024-05-14 05:46:56 +00:00
1 changed files with 3 additions and 1 deletions
Showing only changes of commit 3fb155e697 - Show all commits

View File

@ -1,5 +1,6 @@
<script setup>
import { onBeforeMount, watch, computed, ref } from 'vue';
import { useRoute } from 'vue-router';
import { useI18n } from 'vue-i18n';
import SkeletonDescriptor from 'components/ui/SkeletonDescriptor.vue';
import { useArrayData } from 'composables/useArrayData';
@ -39,6 +40,7 @@ const $props = defineProps({
const state = useState();
const { t } = useI18n();
const route = useRoute();
const { viewSummary } = useSummaryDialog();
const arrayData = useArrayData($props.dataKey || $props.module, {
url: $props.url,
@ -55,7 +57,7 @@ defineExpose({
onBeforeMount(async () => {
await getData();
watch(
() => $props.url,
() => route.params.id,
async () => await getData()
);
});