From 30c912fa62fc78244298d5aeffed8c5e592af3ee Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Wed, 5 Jun 2024 11:38:10 +0200 Subject: [PATCH] reset changes --- src/components/FetchData.vue | 6 +----- src/components/UserPanel.vue | 1 - src/pages/InvoiceIn/Card/InvoiceInCard.vue | 7 ------- src/pages/InvoiceIn/Card/InvoiceInIntrastat.vue | 8 +++++++- src/pages/InvoiceIn/Card/InvoiceInSummary.vue | 6 ------ 5 files changed, 8 insertions(+), 20 deletions(-) diff --git a/src/components/FetchData.vue b/src/components/FetchData.vue index 8134b15ac..2a0864d3e 100644 --- a/src/components/FetchData.vue +++ b/src/components/FetchData.vue @@ -7,10 +7,6 @@ const $props = defineProps({ type: Boolean, default: false, }, - dataKey: { - type: Boolean, - default: false, - }, url: { type: String, default: '', @@ -53,7 +49,7 @@ async function fetch(fetchFilter = {}) { if ($props.sortBy) filter.order = $props.sortBy; if ($props.limit) filter.limit = $props.limit; - const { data } = await axios($props.url, { + const { data } = await axios.get($props.url, { params: { filter: JSON.stringify(filter), ...$props.params }, }); diff --git a/src/components/UserPanel.vue b/src/components/UserPanel.vue index 6489f54f8..3ae05a268 100644 --- a/src/components/UserPanel.vue +++ b/src/components/UserPanel.vue @@ -96,7 +96,6 @@ function copyUserToken() {