修改菜单管理的bug
This commit is contained in:
parent
0ba45b78df
commit
a151d0db2f
|
@ -58,7 +58,7 @@ export const removeMenuInfo = function (param) {
|
|||
return request({
|
||||
url: `/brichat-service/menu/deleteMenu`,
|
||||
method: 'delete',
|
||||
params: { menuId },
|
||||
params: menuId,
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
@ -269,6 +269,7 @@
|
|||
menuForm.apendixForm.icon = menuForm.definedFrom.icon
|
||||
if (menuForm.definedFrom.id) {
|
||||
//编辑
|
||||
menuForm.apendixForm.dispPriority = menuForm.definedFrom.dispPriority
|
||||
await editMenuApendix(menuForm.apendixForm)
|
||||
await editMenuInfo(menuForm.apendixForm)
|
||||
ElMessage.success('编辑成功')
|
||||
|
|
|
@ -189,11 +189,8 @@
|
|||
}
|
||||
const handleRemove = (data) => {
|
||||
$baseConfirm('你确定要删除当前菜单吗', '菜单删除', async () => {
|
||||
await removeMenu({ menuId: data.id }).then(async ()=>{
|
||||
await removeMenuInfo( data.id ).then(async ()=>{
|
||||
getMenuTree()
|
||||
})
|
||||
}).catch(() => {
|
||||
await removeMenu({ menuId: data.id }).catch(async () => {
|
||||
await removeMenuInfo({ menuId: data.id })
|
||||
getMenuTree()
|
||||
})
|
||||
})
|
||||
|
|
|
@ -26,7 +26,6 @@
|
|||
dot = #{menu.dot},
|
||||
dynamicnewtab = #{menu.dynamicnewtab},
|
||||
breadcrumbhidden = #{menu.breadcrumbhidden},
|
||||
is_enable = #{menu.is_enable},
|
||||
collect = #{menu.collect}
|
||||
WHERE
|
||||
id = #{id}
|
||||
|
|
Loading…
Reference in New Issue