You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
464 B
23 lines
464 B
import request from '@/utils/request'
|
|
|
|
/**
|
|
* 获取当前用户的左侧菜单配置
|
|
*/
|
|
export function getMenuConfig() {
|
|
return request({
|
|
url: '/system/user/menuConfig',
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
/**
|
|
* 保存当前用户的左侧菜单配置
|
|
* @param {Object} data - { menuItems: string (JSON), position: string }
|
|
*/
|
|
export function saveMenuConfig(data) {
|
|
return request({
|
|
url: '/system/user/menuConfig',
|
|
method: 'put',
|
|
data: data
|
|
})
|
|
}
|
|
|