fix: modify

develop
时启龙 2024-09-01 15:45:37 +08:00
parent e6fa0f0848
commit 6489b9910f
1 changed files with 1 additions and 1 deletions

View File

@ -1,4 +1,4 @@
export function appendParamsToUrl(url: string, pathname: string, params: Record<string, string>) {
export function appendParamsToUrl(url = '', pathname = '', params: Record<string, string> = {}) {
// 创建一个新的URL对象在末尾添加 pathname
const urlObject = new URL(pathname, url)