9TH_FIX REPORT

This commit is contained in:
beabigegg
2025-09-03 21:04:31 +08:00
parent e3dc5506bc
commit e0e3a55e36
4 changed files with 336 additions and 20 deletions

View File

@@ -107,8 +107,17 @@ export const adminAPI = {
/**
* 清理舊檔案
* @param {Object} options - 清理選項
*/
cleanupOldFiles() {
return request.post('/admin/cleanup')
cleanupOldFiles(options = {}) {
const defaultOptions = {
cleanup_files: true,
cleanup_logs: false,
cleanup_cache: false,
files_days: 7,
logs_days: 30,
cache_days: 90
}
return request.post('/admin/maintenance/cleanup', { ...defaultOptions, ...options })
}
}