From 6489b9910ffa45865acc1075836bd8d567bfaa63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=97=B6=E5=90=AF=E9=BE=99?= Date: Sun, 1 Sep 2024 15:45:37 +0800 Subject: [PATCH] fix: modify --- src/utils/url.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/url.ts b/src/utils/url.ts index 20c0fae..0fcf66e 100644 --- a/src/utils/url.ts +++ b/src/utils/url.ts @@ -1,4 +1,4 @@ -export function appendParamsToUrl(url: string, pathname: string, params: Record) { +export function appendParamsToUrl(url = '', pathname = '', params: Record = {}) { // 创建一个新的URL对象,在末尾添加 pathname const urlObject = new URL(pathname, url)