fix: modify
parent
e6fa0f0848
commit
6489b9910f
|
@ -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
|
// 创建一个新的URL对象,在末尾添加 pathname
|
||||||
const urlObject = new URL(pathname, url)
|
const urlObject = new URL(pathname, url)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue