mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-28 14:52:58 +00:00
14 lines
350 B
TypeScript
14 lines
350 B
TypeScript
export function isWorkFlow(type: string | undefined) {
|
|
return type === 'WORK_FLOW'
|
|
}
|
|
|
|
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 查询字符串
|
|
}
|