fix(menu): 修复菜单列表接口参数缺失menuSource
- 不传递参数时后端默认为ruoyi菜单
This commit is contained in:
@@ -50,6 +50,7 @@ const gridOptions: VxeGridProps<Record<string, any>> = {
|
||||
query: async (_, formValues = {}) => {
|
||||
const resp = await menuList({
|
||||
...formValues,
|
||||
menuSource: 2 // 不传后端会默认为ruoyi的菜单
|
||||
});
|
||||
// 统一处理数据:确保 menuId 和 parentId 存在,并将根节点的 parentId 置为 null
|
||||
const items = (resp || []).map((item) => {
|
||||
|
||||
Reference in New Issue
Block a user