fix: 编辑和删除无法获取菜单id

pull/3/head
icaiwei 2023-03-26 09:36:54 +00:00 committed by Gitee
parent 68aaffa796
commit 9a144c3e32
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ export function getMenuList(params: MenuPageReqVO) {
// 获取菜单详情
export function getMenu(id: number) {
return defHttp.get({ url: '/system/menu/get?id' + id })
return defHttp.get({ url: '/system/menu/get?id=' + id })
}
// 新增菜单
@ -48,5 +48,5 @@ export function updateMenu(data: MenuVO) {
// 删除菜单
export function deleteMenu(id: number) {
return defHttp.delete({ url: '/system/menu/delete?id' + id })
return defHttp.delete({ url: '/system/menu/delete?id=' + id })
}