feat: 修复BUG
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import api from './index';
|
||||
|
||||
const cacheManager = (() => {
|
||||
const cache = new Map();
|
||||
const cacheTimestamps = new Map();
|
||||
@@ -271,6 +273,11 @@ export const consumableLogAPI = {
|
||||
import: data => cachedAPI.post('/consumables/logs/import', data),
|
||||
};
|
||||
|
||||
export const consumableRecordAPI = {
|
||||
list: params => cachedAPI.get('/consumable-records', params),
|
||||
statistics: params => api.get('/consumable-records/statistics', { params }),
|
||||
};
|
||||
|
||||
export const ticketCategoryAPI = {
|
||||
list: params => cachedAPI.get('/ticket-categories', params),
|
||||
create: data => cachedAPI.post('/ticket-categories', data),
|
||||
|
||||
@@ -168,6 +168,13 @@ export const backupAPI = {
|
||||
});
|
||||
},
|
||||
info: () => api.get('/backup/info'),
|
||||
getAutoStatus: () => api.get('/backup/auto/status'),
|
||||
updateAutoSettings: data => api.post('/backup/auto/settings', data),
|
||||
executeNow: data => api.post('/backup/auto/execute', data),
|
||||
testCron: data => api.post('/backup/auto/test-cron', data),
|
||||
getLogs: params => api.get('/backup/logs', { params }),
|
||||
getLogDetail: id => api.get(`/backup/logs/${id}`),
|
||||
cleanOldLogs: days => api.delete('/backup/logs/clean', { params: { days } }),
|
||||
};
|
||||
|
||||
export default api;
|
||||
|
||||
Reference in New Issue
Block a user