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;