wugg 2 anni fa
parent
commit
aa16d60bb1
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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;