diff --git a/src/components/FetchData.vue b/src/components/FetchData.vue index 2a0864d3e..8134b15ac 100644 --- a/src/components/FetchData.vue +++ b/src/components/FetchData.vue @@ -7,6 +7,10 @@ const $props = defineProps({ type: Boolean, default: false, }, + dataKey: { + type: Boolean, + default: false, + }, url: { type: String, default: '', @@ -49,7 +53,7 @@ async function fetch(fetchFilter = {}) { if ($props.sortBy) filter.order = $props.sortBy; if ($props.limit) filter.limit = $props.limit; - const { data } = await axios.get($props.url, { + const { data } = await axios($props.url, { params: { filter: JSON.stringify(filter), ...$props.params }, }); diff --git a/src/components/UserPanel.vue b/src/components/UserPanel.vue index 3ae05a268..6489f54f8 100644 --- a/src/components/UserPanel.vue +++ b/src/components/UserPanel.vue @@ -96,6 +96,7 @@ function copyUserToken() {