admin-vben/packages/effects
vben c81ac5684c fix: when the request is wrong, no error is thrown 2024-07-13 18:27:57 +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 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
layouts fix: when the request is wrong, no error is thrown 2024-07-13 18:27:57 +08:00
README.md fix: lint error 2024-07-13 17:32:21 +08:00

README.md

Effects 目录

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

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