修改菜单排序

This commit is contained in:
不做码农
2022-04-26 10:23:18 +08:00
parent 17ff4c405d
commit b2a6dfd5c0
3 changed files with 13 additions and 7 deletions

View File

@@ -63,8 +63,8 @@ export function delMenu(menuId) {
export function changeMenuSort(data) {
return request({
url: '/system/Menu/ChangeSort',
method: 'post',
data: data
method: 'get',
params: data
})
}
@@ -75,4 +75,4 @@ export const getRouters = (query) => {
method: 'get',
params: query
})
}
}

View File

@@ -425,7 +425,7 @@ export default {
*/
handleChangeSort(item) {
this.editIndex = -1;
changeMenuSort({ orderNum: item.orderNum, menuId: item.menuId }).then(
changeMenuSort({ value: item.orderNum, id: item.menuId }).then(
(response) => {
this.msgSuccess("修改成功");
this.getList();