wugg 2 年之前
父節點
當前提交
aa16d60bb1
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/common.php

+ 1 - 1
app/common.php

@@ -1011,7 +1011,7 @@ if (!function_exists('excelSaveFile')) {
         }
 
         $file = $filename . ".xls";
-
+        $objPHPExcel->setActiveSheetIndex(0);
         $objWriter = \PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel2007');
         $objWriter->save($dir . $file); // 文件通过浏览器下载
         $url = $dir . $file;