/** * 将多行字符串拆分为数组 * @param str */ export const splitLines = (str: string) => str.split(/\r?\n/);