mirror of https://github.com/halo-dev/halo
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
parent
281567877a
commit
9fbf66d496
|
@ -468,13 +468,13 @@ const fetchRemoteMappedOptions = async (
|
||||||
};
|
};
|
||||||
if (requestConfig.method === "GET") {
|
if (requestConfig.method === "GET") {
|
||||||
requestConfig.params = {
|
requestConfig.params = {
|
||||||
labelSelector: `${selectProps.requestOption?.valueField?.toString()}=in(${unmappedSelectValues.join(
|
fieldSelector: `${selectProps.requestOption?.valueField?.toString()}=(${unmappedSelectValues.join(
|
||||||
","
|
","
|
||||||
)})`,
|
)})`,
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
requestConfig.data = {
|
requestConfig.data = {
|
||||||
labelSelector: `${selectProps.requestOption?.valueField?.toString()}=in(${unmappedSelectValues.join(
|
fieldSelector: `${selectProps.requestOption?.valueField?.toString()}=(${unmappedSelectValues.join(
|
||||||
","
|
","
|
||||||
)})`,
|
)})`,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue