Update api.js
This commit is contained in:
1 parent
59ef72fbc3
commit
b0d2f94207
1 file changed
+4
-4
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user