浏览代码

修复菜单无法删除问题。

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),