学员学籍异动申请新增报错

This commit is contained in:
2026-09-20 14:45:19 +08:00
parent a566a26fec
commit 5e3bee9c5f
5 changed files with 280 additions and 201 deletions
+5 -1
View File
@@ -1125,7 +1125,11 @@ export default {
// ==================== 模板下载 / 导入 ====================
handleDownloadTemplate() {
downloadTeachingMaterialTemplate().then(blob => {
saveAs(blob, '教材管理导入模板.xls')
if (blob && blob.type && blob.type.indexOf('json') !== -1) {
this.$message.error('模板下载失败')
return
}
saveAs(blob, '教材管理导入模板.xlsx')
this.$message.success('模板下载成功')
}).catch(() => {})
},