admin-vben/packages/effects
vince 3eb7a8bc6f chore: @vben-core/iconify was renamed @vben-core/icons. Add readme.md for some packages 2024-07-14 22:51:10 +08:00
..
access refactor(project): business changed its name to effects, and universal-ui changed its name to common-ui 2024-07-13 17:25:15 +08:00
chart-ui refactor(project): business changed its name to effects, and universal-ui changed its name to common-ui 2024-07-13 17:25:15 +08:00
common-ui chore: @vben-core/iconify was renamed @vben-core/icons. Add readme.md for some packages 2024-07-14 22:51:10 +08:00
layouts chore: @vben-core/iconify was renamed @vben-core/icons. Add readme.md for some packages 2024-07-14 22:51:10 +08:00
README.md refactor(project): @vben/vite-connect is reconfigured to support synchronization 2024-07-13 21:13:42 +08:00

README.md

Effects 目录

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

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