diff --git a/src/components/common/VnCard.vue b/src/components/common/VnCard.vue index 7b1205b8e..89e3e56fd 100644 --- a/src/components/common/VnCard.vue +++ b/src/components/common/VnCard.vue @@ -31,6 +31,7 @@ const searchRightDataKey = computed(() => { const arrayData = useArrayData(props.dataKey, { url: props.url, filter: props.filter, + oneRecord: true, }); onBeforeMount(async () => { diff --git a/src/components/common/VnCardBeta.vue b/src/components/common/VnCardBeta.vue index a3cf17697..35d64af34 100644 --- a/src/components/common/VnCardBeta.vue +++ b/src/components/common/VnCardBeta.vue @@ -35,7 +35,6 @@ onBeforeMount(async () => { if (props.idInWhere) arrayData.store.filter.where = { id: route.params.id }; else if (!regex.test(props.url)) arrayData.store.url = `${props.url}/${route.params.id}`; - console.log('fetching data', arrayData.store.url, route.params.id); await arrayData.fetch({ append: false, updateRouter: false }); } catch { const { matched: matches } = router.currentRoute.value;