changes
This commit is contained in:
@@ -196,7 +196,10 @@ if (props.first) {
|
||||
}
|
||||
}
|
||||
} else if (props.optionid) {
|
||||
selected.value = await $getdata(props.api, { id: props.optionid }, undefined, true);
|
||||
selected.value = await $getdata(props.api, {
|
||||
filter: { id: props.optionid },
|
||||
first: true,
|
||||
});
|
||||
}
|
||||
if (selected.value) doSelect(selected.value);
|
||||
|
||||
@@ -282,7 +285,7 @@ function findObject(val) {
|
||||
async function getData() {
|
||||
isLoading.value = true;
|
||||
params.value.filter = props.filter;
|
||||
const data = await $getdata(props.api, undefined, params.value);
|
||||
const data = await $getdata(props.api, { params: params.value });
|
||||
isLoading.value = false;
|
||||
return data;
|
||||
}
|
||||
@@ -301,7 +304,7 @@ async function getSuggestions(val) {
|
||||
params.value.filter_or = filter_or;
|
||||
if (props.filter) params.value.filter = $copy(props.filter);
|
||||
isLoading.value = true;
|
||||
suggestions.value = await $getdata(props.api, undefined, params.value);
|
||||
suggestions.value = await $getdata(props.api, { params: params.value });
|
||||
isLoading.value = false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user