feat: 按钮补充排序和树路径值

This commit is contained in:
ray
2024-08-04 00:32:33 +08:00
parent c66867acfd
commit be0688b629

View File

@@ -420,11 +420,14 @@ public class SysMenuServiceImpl extends ServiceImpl<SysMenuMapper, SysMenu> impl
button.setType(MenuTypeEnum.BUTTON);
button.setName(actions[i]);
button.setPerm(permPrefix + perms[i]);
button.setSort(i + 1);
this.save(button);
// 生成 treepath
button.setTreePath(treePath + "," + button.getId());
this.updateById(button);
}
}
}
}