/** 检测文本是否是中文 */ export function isChineseString(str: string): boolean { return /[\u4e00-\u9fa5]/.test(str) }