Skip to content

[FEATURE] ElectronEnv 改造 #2243

@yantze

Description

@yantze

如果你的需求与问题相关,请在下面描述一下(Is your feature request related to a problem? Please describe.)

Electron 桌面端版本充斥着大量的 ElectronEnv,有几个明显的问题:

  1. 不知道什么时候有数据
  2. 不是到哪些数据是已经更新完成了
  3. 来自各个地方都能修改数据,导致这个变量难以维护
  4. 不要暴露全局变量到框架外部

描述你预期的功能表现(Describe the solution you'd like)

把 ElectronEnv 中多个变量拆分成多个服务,最后的一部分可以单独设置为应用整体的 ClientEnvInfoService 这类可以管理的服务,最后是分解 ElectronEnv 全局变量。

描述你考虑过的替代方案(Describe alternatives you've considered)

补充信息(Additional context)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions