refactor: 修改文章导出
This commit is contained in:
@@ -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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获取文章导出数据
|
// 获取文章导出数据
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user