diff --git a/src/utils/excel.util.ts b/src/utils/excel.util.ts index efc1d2f..c25740d 100644 --- a/src/utils/excel.util.ts +++ b/src/utils/excel.util.ts @@ -7,7 +7,7 @@ export function excelToJson(filePath: string) { throw new Error('excelToJson: no sheet found') } const sheet = workSheetsFromFile[0] - const header = sheet.data[0] as string[] + const header = (sheet.data[0] as string[]).map(item => item.toLowerCase()) let arr = [] for (let i = 1, l = sheet.data.length; i < l; i++) { let row = sheet.data[i] as []