/* * @Description: 用户首页 * @Autor: renchao * @LastEditTime: 2023-05-16 16:06:51 */ import request from '@/utils/request' let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) /** * @description: 获取用户信息 * @author: renchao */ export function getUserInfo () { return request({ url: SERVER.SERVERAPI + '/rest/user/getUserInfo', method: 'get', }) } /** * @description: 获取菜单信息 * @author: renchao */ export function getMenuInfo () { return request({ url: SERVER.SERVERAPI + '/rest/user/getUserAuthorizationMenus', method: 'get', }) }