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

Merge pull request !243 from jawe/dev
This commit is contained in:
芋道源码
2025-11-02 00:51:59 +00:00
committed by Gitee
69 changed files with 2262 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;
}
}