2024-02-19 13:44:32 +08:00
|
|
|
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'
|
|
|
|
|
})
|
|
|
|
|
}
|
2024-02-29 11:13:07 +08:00
|
|
|
export function getTheme() {
|
|
|
|
|
return createAxios({
|
|
|
|
|
url: '/system-boot/theme/getTheme',
|
|
|
|
|
method: 'get'
|
|
|
|
|
})
|
|
|
|
|
}
|
2024-02-19 13:44:32 +08:00
|
|
|
|