admin-vben5/packages/effects
Netfan aa27a2f7a1
feat: encrypt the privacy data when it is persisted (#6056)
* 对私密数据持久化时执行加密
* 将锁屏密码合并到accessStore中进行加密
2025-04-27 20:59:10 +08:00
..
access fix: route root.children duplicate problem (#5755) 2025-03-29 22:38:30 +08:00
common-ui feat: add more expose methods for apiComponent (#5958) 2025-04-15 15:32:30 +08:00
hooks fix: watermark settings in the preferences modified accidentally (#5823) 2025-03-31 09:06:02 +08:00
layouts feat: encrypt the privacy data when it is persisted (#6056) 2025-04-27 20:59:10 +08:00
plugins fix: title of search button in vxeTable toolbar (#6046) 2025-04-26 01:08:41 +08:00
request feat: pre-set serialization methods for request parameters (#5814) 2025-03-29 19:21:21 +08:00
README.md refactor: adjust all sample pages and use page components (#4118) 2024-08-11 20:05:52 +08:00

Effects 目录

effects 目录专门用于存放与轻微耦合相关的代码和逻辑。如果你的包具有以下特点,建议将其放置在 effects 目录下:

  • 状态管理:使用状态管理框架 pinia并包含处理副作用如异步操作、API 调用)的部分。
  • 用户偏好设置:使用 @vben-core/preferences 处理用户偏好设置,涉及本地存储或浏览器缓存逻辑(如使用 localStorage)。
  • 导航和路由:处理导航、页面跳转等场景,需要管理路由变化的逻辑。
  • 组件库依赖:包含与特定组件库紧密耦合或依赖大型仓库的部分。

通过将相关代码归类到 effects 目录,可以使项目结构更加清晰,便于维护和扩展。