MaxKB/ui/src/utils/application.ts
wangdan-fit2cloud 7abfebe927 fix: url
2025-07-02 14:10:24 +08:00

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 查询字符串
}