27 lines
538 B
TypeScript
27 lines
538 B
TypeScript
|
|
import createAxios from '@/utils/request'
|
||
|
|
|
||
|
|
// 菜单修改
|
||
|
|
export function updateMenu(params: anyObj) {
|
||
|
|
return createAxios({
|
||
|
|
url: '/user-boot/function/update',
|
||
|
|
method: 'PUT',
|
||
|
|
data: params
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
export function addMenu(params: anyObj) {
|
||
|
|
return createAxios({
|
||
|
|
url: '/user-boot/function/add',
|
||
|
|
method: 'POST',
|
||
|
|
data: params
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
export function delMenu(id: string) {
|
||
|
|
return createAxios({
|
||
|
|
url: '/user-boot/function/delete?id=' + id,
|
||
|
|
method: 'delete'
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|