0
0
Fork 0

Update filter implementation

This commit is contained in:
Kevin Martinez 2023-11-23 20:26:50 -03:00
parent 8e0ee45901
commit ca7aae6315
2 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ async function fetch() {
if ($props.limit) filter.limit = $props.limit; if ($props.limit) filter.limit = $props.limit;
const { data } = await axios.get($props.url, { const { data } = await axios.get($props.url, {
params: { filter }, params: { filter: JSON.stringify(filter) },
}); });
emit('onFetch', data); emit('onFetch', data);

View File

@ -61,7 +61,7 @@ function tMobile(...args) {
async function fetch() { async function fetch() {
const { data } = await axios.get($props.url, { const { data } = await axios.get($props.url, {
params: { filter: $props.filter }, params: { filter: JSON.stringify($props.filter) },
}); });
state.set($props.model, data); state.set($props.model, data);