Merge branch 'dev' into dev-dictionary

This commit is contained in:
XieYongHong 2023-10-10 11:53:12 +08:00
commit 8ffb079c62
1 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ const handleTermsToString = (queryTerms: any, terms: Array<TermsType>, parentKey
Object.keys(a).forEach((b) => { Object.keys(a).forEach((b) => {
const key = `${parentKey}[${aIndex}].${b}` const key = `${parentKey}[${aIndex}].${b}`
if (b === 'terms') { if (b === 'terms') {
handleTermsToString(queryTerms, a[b], `${key}.`) handleTermsToString(queryTerms, a[b], `${key}`)
} else { } else {
queryTerms[key] = a[b] queryTerms[key] = a[b]
} }
@ -48,7 +48,7 @@ export const paramsEncodeQuery = (params?: ParamsType) => {
const { sorts, terms } = params const { sorts, terms } = params
if (terms) { if (terms) {
handleTermsToString(queryParams, terms, 'terms.') handleTermsToString(queryParams, terms, 'terms')
} }
if (sorts) { if (sorts) {