src/views/personnelManagement/classsSheduling/index.vue
@@ -674,9 +674,11 @@ }) .then(res => { proxy.$modal.msgSuccess("下载成功"); downLoading.value = false; const blob = new Blob([res], { type: "application/force-download", const blob = res instanceof Blob ? res : new Blob([res], { type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", }); let fileName = ""; if (query.month) { @@ -687,6 +689,8 @@ proxy.$download.saveAs(blob, fileName + ".xlsx"); }) .catch(err => { }) .finally(() => { downLoading.value = false; }); };