fix: mapApi缺少delete方法,前端提示不支持删除
This commit is contained in:
@@ -42,6 +42,7 @@ export const mapApi = {
|
|||||||
list: () => api.get('/maps'),
|
list: () => api.get('/maps'),
|
||||||
create: (data: any) => api.post('/maps', data),
|
create: (data: any) => api.post('/maps', data),
|
||||||
update: (id: number, data: any) => api.put(`/maps/${id}`, data),
|
update: (id: number, data: any) => api.put(`/maps/${id}`, data),
|
||||||
|
delete: (id: number) => api.delete(`/maps/${id}`),
|
||||||
createWithTemplate: (data: any) => api.post('/maps/create-with-template', data),
|
createWithTemplate: (data: any) => api.post('/maps/create-with-template', data),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user