Update api.js

This commit is contained in:
Furrium Network authored and GitHub committed 2026-08-10 17:21:46 +08:00
1 parent 59ef72fbc3
commit b0d2f94207
1 file changed
+4 -4
+4 -4
View File
@@ -206,12 +206,12 @@ const API = {
},
// ============================================================
// 事件日志
// 事件日志(支持分页)
// ============================================================
async getEventLogs() {
const data = await apiFetch('/event-logs');
async getEventLogs(page = 1, limit = 20) {
const data = await apiFetch('/event-logs?page=' + page + '&limit=' + limit);
if (data.error) throw new Error(data.error);
return data || [];
return data;
},
async logEvent(action) {