setQueryParams 函数用于批量设置 URL 的查询参数。
import { setQueryParams } from '@movk/core'
setQueryParams('https://example.com', { page: 1, limit: 10 })
// 'https://example.com?page=1&limit=10'
setQueryParams('https://example.com?page=1', { page: 2, sort: 'name' })
// 'https://example.com?page=2&sort=name'
setQueryParams(url, params)批量设置 URL 的查询参数。
7c832 — refactor!: 重构模块架构,拆分 utils 为专业化模块