fix: resolve incorrect parameters in fomkit select remote request (#6536)

#### What type of PR is this?

/kind bug
/area ui
/milestone 2.19.x

#### What this PR does / why we need it:

解决 formkit select 远程请求时的参数错误问题。

#### Does this PR introduce a user-facing change?
```release-note
None
```
pull/6539/head
Takagi 2024-08-28 12:35:22 +08:00 committed by GitHub
parent 281567877a
commit 9fbf66d496
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -468,13 +468,13 @@ const fetchRemoteMappedOptions = async (
};
if (requestConfig.method === "GET") {
requestConfig.params = {
labelSelector: `${selectProps.requestOption?.valueField?.toString()}=in(${unmappedSelectValues.join(
fieldSelector: `${selectProps.requestOption?.valueField?.toString()}=(${unmappedSelectValues.join(
","
)})`,
};
} else {
requestConfig.data = {
labelSelector: `${selectProps.requestOption?.valueField?.toString()}=in(${unmappedSelectValues.join(
fieldSelector: `${selectProps.requestOption?.valueField?.toString()}=(${unmappedSelectValues.join(
","
)})`,
};