正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -3311,7 +3311,7 @@ Handling Information | @@ -3311,7 +3311,7 @@ Handling Information | ||
| 3311 | const reader = new FileReader(); | 3311 | const reader = new FileReader(); |
| 3312 | reader.onload = (e) => { | 3312 | reader.onload = (e) => { |
| 3313 | try { | 3313 | try { |
| 3314 | - const data = new Uint8Array(e.target.result); | 3314 | + /*const data = new Uint8Array(e.target.result); |
| 3315 | // 检查文件头部以用来确认文件格式 | 3315 | // 检查文件头部以用来确认文件格式 |
| 3316 | const isXLSX = | 3316 | const isXLSX = |
| 3317 | data[0] === 0x50 && | 3317 | data[0] === 0x50 && |
| @@ -3345,7 +3345,7 @@ Handling Information | @@ -3345,7 +3345,7 @@ Handling Information | ||
| 3345 | type: 'error', | 3345 | type: 'error', |
| 3346 | message: '未知的 Excel 格式' | 3346 | message: '未知的 Excel 格式' |
| 3347 | }); | 3347 | }); |
| 3348 | - } | 3348 | + }*/ |
| 3349 | const workbook = XLSX.read(data, { type: 'array' }); | 3349 | const workbook = XLSX.read(data, { type: 'array' }); |
| 3350 | //const worksheetName = '格式化打印'; // 指定工作表名称 | 3350 | //const worksheetName = '格式化打印'; // 指定工作表名称 |
| 3351 | const worksheetName = workbook.SheetNames[0]; | 3351 | const worksheetName = workbook.SheetNames[0]; |
-
请 注册 或 登录 后发表评论