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/styles/scss/index.scss b/src/styles/scss/index.scss index 1ae9715..a7d0ef8 100644 --- a/src/styles/scss/index.scss +++ b/src/styles/scss/index.scss @@ -4,6 +4,7 @@ @import './element-ui.scss'; @import './sidebar.scss'; @import './btn.scss'; +@import './admin.scss'; body { margin: 0; diff --git a/src/views/menu/index.vue b/src/views/menu/index.vue index 80de1f2..702ddb8 100644 --- a/src/views/menu/index.vue +++ b/src/views/menu/index.vue @@ -1,270 +1,287 @@