1
0
jinmao88 d9ba9917ff fix: an error was reported in the adaptation of the naive component library theme (#4041) 7 сар өмнө
..
access 4f5783d00b perf: enable strict ts type checking (#4045) 7 сар өмнө
chart-ui 9348d65420 fix: Adjusted contentCompact without triggering ECharts resize (#3997) 7 сар өмнө
common-ui 4f5783d00b perf: enable strict ts type checking (#4045) 7 сар өмнө
hooks d9ba9917ff fix: an error was reported in the adaptation of the naive component library theme (#4041) 7 сар өмнө
layouts 84c8fb0ecc feat: add support for custom slot header-index, sorted by index (#4039) 7 сар өмнө
request feda1484ab chore(deps-dev): bump axios-mock-adapter from 1.22.0 to 2.0.0 (#4050) 7 сар өмнө
README.md a5edb67b12 chore: update app name 8 сар өмнө

README.md

Effects 目录

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

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

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