feat: 添加CurrentEmployeeInitialedEvent并重构初始化逻辑
添加CurrentEmployeeInitialedEvent事件类,用于在员工初始化完成后发布事件 重构HomeWindowController中的初始化逻辑,使用事件监听方式处理管理员任务调度 更新Unit类实现IdentityEntity和NamedEntity接口 移除SysConf类中多余的注释 在.gitignore中添加config.properties忽略规则
This commit is contained in:
@@ -69,6 +69,8 @@ public class CurrentEmployee extends EmployeeViewModel {
|
||||
Platform.runLater(() -> {
|
||||
update(employee);
|
||||
rolesProperty().setAll(roles);
|
||||
// 发布事件
|
||||
SpringApp.context.publishEvent(new CurrentEmployeeInitialedEvent(this));
|
||||
future.complete(null);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user