mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-26 08:36:19 +08:00

* refactor(api): remove unnecessary userId param 移除getUserInfo、getPermCode、getMenuList接口的userId参数。 这些接口应当始终与当前登录用户相关而无需传递userId。 * fix: fix auth header key case error
15 lines
316 B
TypeScript
15 lines
316 B
TypeScript
import { defHttp } from '/@/utils/http/axios';
|
|
import { getMenuListResultModel } from './model/menuModel';
|
|
|
|
enum Api {
|
|
GetMenuList = '/getMenuList',
|
|
}
|
|
|
|
/**
|
|
* @description: Get user menu based on id
|
|
*/
|
|
|
|
export const getMenuList = () => {
|
|
return defHttp.get<getMenuListResultModel>({ url: Api.GetMenuList });
|
|
};
|