feat: add media type selection to MediaFormModal and remove redundant type field from API requests in App component
This commit is contained in:
@@ -157,7 +157,6 @@
|
||||
try {
|
||||
const response = await request.post<ApiResponse<Media>>('/media/create', {
|
||||
...media,
|
||||
type: currentCategory
|
||||
});
|
||||
|
||||
if (response.data.code === 0) {
|
||||
@@ -176,7 +175,6 @@
|
||||
try {
|
||||
const response = await request.put<ApiResponse<Media>>(`/media/updateById/${media.id}`, {
|
||||
...media,
|
||||
type: currentCategory
|
||||
});
|
||||
|
||||
if (response.data.code === 0) {
|
||||
|
||||
Reference in New Issue
Block a user