|
|
@@ -2708,9 +2708,10 @@ const downloadAll = async () => {
|
|
|
// 遍历学生的所有照片
|
|
|
for (let i = 0; i < student.content.fileList.length; i++) {
|
|
|
const file = student.content.fileList[i]
|
|
|
+ const ext = (file.url.split('?')[0].split('.').pop() || 'jpg').toLowerCase()
|
|
|
const fileName = student.content.fileList.length > 1
|
|
|
- ? `${student.name}${String(i + 1).padStart(2, '0')}.jpg`
|
|
|
- : `${student.name}.jpg`
|
|
|
+ ? `${student.name}${String(i + 1).padStart(2, '0')}.${ext}`
|
|
|
+ : `${student.name}.${ext}`
|
|
|
|
|
|
try {
|
|
|
// 获取图片数据
|