root 1 سال پیش
والد
کامیت
bae427f50e
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      js/excel.js

+ 1 - 1
js/excel.js

@@ -8,7 +8,7 @@ exceltoxlxstream = async function (file) {
                 const data = new Uint8Array(e.target.result);
                 const workbook = XLSX.read(data, { type: 'array' });
                 const fileStream = XLSX.write(workbook, { type: 'array', bookType: 'xlsx' });
-                const blob = new Blob([fileStream], { type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' });
+                const blob = new Blob([fileStream], { type: 'application/vnd.ms-excel;charset=utf-8' });
                 const url = URL.createObjectURL(blob);
                 // 创建隐藏的下载链接并点击
                 const downloadLink = document.createElement('a');