fix ssh 管理独立 tab 页面使用默认的字符串排序

This commit is contained in:
小吾立 2024-06-06 10:26:53 +08:00
parent 7117cb50db
commit 6be4be6325
2 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@
1. 【server】修复 没有端口的容器重建页面异常(感谢@冰淇淋还是冰激凌)
2. 【server】修复 工作空间菜单配置错误(感谢@Again... .
3.
3. 【server】优化 ssh 管理独立 tab 页面使用默认的字符串排序
------

View File

@ -102,9 +102,9 @@ public class SshController extends BaseServerController {
String group = sshModel.getGroup();
String groupId = SecureUtil.sha1(StrUtil.emptyToDefault(group, StrUtil.EMPTY));
String groupId2 = StrUtil.format("g_{}", groupId);
groupNode.computeIfAbsent(groupId, s -> new TreeNode<>(groupId2, StrUtil.SLASH, group, 0));
groupNode.computeIfAbsent(groupId, s -> new TreeNode<>(groupId2, StrUtil.SLASH, group, sshModel.getName()));
//
TreeNode<String> treeNode = new TreeNode<>(sshModel.getId(), groupId2, sshModel.getName(), 0);
TreeNode<String> treeNode = new TreeNode<>(sshModel.getId(), groupId2, sshModel.getName(), sshModel.getName());
Map<String, Object> extra = new HashMap<>();
extra.put("fileDirs", sshModel.getFileDirs());
extra.put("isLeaf", true);