refactor: 修改文章导出

This commit is contained in:
2025-01-17 10:44:51 +08:00
parent cb830b92e8
commit 889add9c13
2 changed files with 1 additions and 2 deletions

View File

@@ -232,7 +232,6 @@ class Article
header('Cache-Control: max-age=0'); header('Cache-Control: max-age=0');
$writer = IOFactory::createWriter($spreadsheet, 'Xlsx'); $writer = IOFactory::createWriter($spreadsheet, 'Xlsx');
$writer->save('php://output'); $writer->save('php://output');
exit;
} }
// 获取文章导出数据 // 获取文章导出数据

View File

@@ -5,7 +5,7 @@ return [
'allowed_origins' => ['*'], 'allowed_origins' => ['*'],
'allowed_origins_patterns' => [], 'allowed_origins_patterns' => [],
'allowed_methods' => ['GET', 'POST', 'DELETE', 'PUT', 'OPTIONS'], 'allowed_methods' => ['GET', 'POST', 'DELETE', 'PUT', 'OPTIONS'],
'allowed_headers' => ['Content-Type', 'Authorization', 'Refresh-Authorization'], 'allowed_headers' => ['Content-Type', 'Authorization', 'Refresh-Authorization', 'Content-Disposition'],
'exposed_headers' => [], 'exposed_headers' => [],
'max_age' => 7200, 'max_age' => 7200,
'supports_credentials' => true, 'supports_credentials' => true,