Skip to content

Commit

Permalink
fix: resolve incorrect parameters in fomkit select remote request (#6536
Browse files Browse the repository at this point in the history
)

#### 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
```
  • Loading branch information
LIlGG authored Aug 28, 2024
1 parent 2815678 commit 9fbf66d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/src/formkit/inputs/select/SelectMain.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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(
","
)})`,
};
Expand Down

0 comments on commit 9fbf66d

Please sign in to comment.