feat(@vben/web-antd):迁移客服模块

This commit is contained in:
jawe
2025-10-30 15:39:08 +08:00
parent 38df83e281
commit 0ef91c1cad
69 changed files with 2259 additions and 40 deletions

View File

@@ -99,4 +99,18 @@ export function groupBy(array: any[], key: string) {
result[groupKey].push(item);
}
return result;
}
}
/**
* 解析 JSON 字符串
*
* @param str
*/
export function jsonParse(str: string) {
try {
return JSON.parse(str);
} catch {
console.warn(`str[${str}] 不是一个 JSON 字符串`);
return str;
}
}