diff --git a/src/utils/url.ts b/src/utils/url.ts index 0fcf66e..85f61f0 100644 --- a/src/utils/url.ts +++ b/src/utils/url.ts @@ -11,8 +11,14 @@ export function appendParamsToUrl(url = '', pathname = '', params: Record -1) { + if (result.endsWith('&')) { + result += searchParams.toString() + } else { + result += '&' + searchParams.toString() + } } else { result += '?' + searchParams.toString() }