refactor(system): 优化代码注释和结构
- 在 JwtTokenManager 类中更新 generateToken 方法的注释 - 在 MenuServiceImpl 类中修正菜单类型判断逻辑并优化注释 - 在 MyAuthenticationEntryPoint 类中调整导入顺序和删除未使用的导入
This commit is contained in:
@@ -241,13 +241,13 @@ public class MenuServiceImpl extends ServiceImpl<MenuMapper, Menu> implements Me
|
||||
|
||||
MenuTypeEnum menuType = menuForm.getType();
|
||||
|
||||
if (menuType == MenuTypeEnum.CATALOG) { // 如果是外链
|
||||
if (menuType == MenuTypeEnum.CATALOG) { // 如果是目录
|
||||
String path = menuForm.getRoutePath();
|
||||
if (menuForm.getParentId() == 0 && !path.startsWith("/")) {
|
||||
menuForm.setRoutePath("/" + path); // 一级目录需以 / 开头
|
||||
}
|
||||
menuForm.setComponent("Layout");
|
||||
} else if (menuType == MenuTypeEnum.EXTLINK) { // 如果是目录
|
||||
} else if (menuType == MenuTypeEnum.EXTLINK) { // 如果是外链
|
||||
|
||||
menuForm.setComponent(null);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user