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() {