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),
|
||||
|
||||
Reference in New Issue
Block a user