Vben 36e7ca19a1 perf: improve modal and drawer component documentation and fix known problems (#4264) hai 8 meses
..
access 8adb22847d perf: optimize the access directive to support string passing (#4246) hai 8 meses
common-ui 36e7ca19a1 perf: improve modal and drawer component documentation and fix known problems (#4264) hai 8 meses
hooks edb55b1fc0 chore: release v5.1.2 hai 8 meses
layouts c6b9a56b73 fix: clearPreferencesAndLogout does not take effect when the preferences button is at the top (#4253) hai 8 meses
plugins 2ba28488a4 chore(deps): bump the non-breaking-changes group with 13 updates (#4244) hai 8 meses
request df7757d001 fix: when the 'refreshToken' expires, it does not re-authenticate (#4231) hai 8 meses
README.md 517acada1a refactor: adjust all sample pages and use page components (#4118) hai 9 meses

README.md

Effects 目录

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

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

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