2025-04-28 10:14:16 +00:00
|
|
|
export function isWorkFlow(type: string | undefined) {
|
|
|
|
|
return type === 'WORK_FLOW'
|
|
|
|
|
}
|
2025-07-02 06:09:02 +00:00
|
|
|
|
|
|
|
|
export function mapToUrlParams(map: any[]) {
|
|
|
|
|
const params = new URLSearchParams()
|
|
|
|
|
|
|
|
|
|
map.forEach((item: any) => {
|
|
|
|
|
params.append(encodeURIComponent(item.name), encodeURIComponent(item.value))
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
return params.toString() // 返回 URL 查询字符串
|
|
|
|
|
}
|