소스 검색

修复菜单无法删除问题。

baoyubo 10 달 전
부모
커밋
15f52cde2e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      routers/prod_api/system/menu/__init__.py

+ 1 - 1
routers/prod_api/system/menu/__init__.py

@@ -516,7 +516,7 @@ async def update(
             e = detail
         raise HTTPException(status_code=status.HTTP_500_INTERNAL_SERVER_ERROR, detail=str(e))
 
-@router.delete('/delete/{menu_id}')
+@router.delete('/{menu_id}')
 async def delete(
     menu_id: int,
     db: Session = Depends(get_db),