diff --git a/src/api/menu.js b/src/api/menu.js index c11c617..4017529 100644 --- a/src/api/menu.js +++ b/src/api/menu.js @@ -37,17 +37,17 @@ export function roleMenuTreeselect(roleId) { // 新增菜单 export function addMenu(data) { return request({ - url: '/api/v1/menu', + url: '/menu/AddMenu', method: 'post', data: data }) } // 修改菜单 -export function updateMenu(data, id) { +export function updateMenu(data ) { return request({ - url: '/api/v1/menu/' + id, - method: 'put', + url: '/menu/menuEdit', + method: 'post', data: data }) } @@ -55,8 +55,8 @@ export function updateMenu(data, id) { // 删除菜单 export function delMenu(data) { return request({ - url: '/api/v1/menu', - method: 'delete', + url: '/menu/menuDel', + method: 'post', data: data }) } diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index 839e9c2..996cf9b 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -1,8 +1,6 @@