fix: 菜单管理增加微信小程序图标,修复部分问题

This commit is contained in:
2025-05-30 18:30:18 +08:00
parent 352795d52f
commit 863bab3eba
8 changed files with 340 additions and 79 deletions

View File

@@ -9,6 +9,12 @@ const MenuApi = {
method: "get",
});
},
getCashMenus() {
return request<any, CashMenu[]>({
url: `${baseURL}/list/cash`,
method: "get",
});
},
/**获取所有菜单 */
getList(data: getListRequest) {
return request<any, MenuVO[]>({
@@ -48,6 +54,13 @@ const MenuApi = {
};
export default MenuApi;
export interface CashMenu {
component?: null | string;
menuId: number;
name: null | string;
path?: null | string;
[property: string]: any;
}
/** RouteVO路由对象 */
export interface RouteVO {

View File

@@ -33,11 +33,11 @@ const RoleApi = {
});
},
// 获取角色对应的菜单id
getMenu(id: number) {
getMenu(id: number, type: number = 0) {
return request<any, any[]>({
url: `${baseURL}/menu`,
method: "get",
params: { id },
params: { id, type },
});
},
};