admin-vben/packages/effects
dependabot[bot] feda1484ab
chore(deps-dev): bump axios-mock-adapter from 1.22.0 to 2.0.0 (#4050)
Bumps [axios-mock-adapter](https://github.com/ctimmerm/axios-mock-adapter) from 1.22.0 to 2.0.0.
- [Release notes](https://github.com/ctimmerm/axios-mock-adapter/releases)
- [Changelog](https://github.com/ctimmerm/axios-mock-adapter/blob/master/CHANGELOG.md)
- [Commits](https://github.com/ctimmerm/axios-mock-adapter/compare/v1.22.0...v2.0.0)

---
updated-dependencies:
- dependency-name: axios-mock-adapter
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-06 18:36:56 +08:00
..
access perf: enable strict ts type checking (#4045) 2024-08-05 21:12:22 +08:00
chart-ui fix: Adjusted contentCompact without triggering ECharts resize (#3997) 2024-08-02 06:42:02 +08:00
common-ui perf: enable strict ts type checking (#4045) 2024-08-05 21:12:22 +08:00
hooks fix: missing await for an async function call (#4035) 2024-08-04 21:53:44 +08:00
layouts perf: enable strict ts type checking (#4045) 2024-08-05 21:12:22 +08:00
request chore(deps-dev): bump axios-mock-adapter from 1.22.0 to 2.0.0 (#4050) 2024-08-06 18:36:56 +08:00
README.md chore: update app name 2024-07-14 23:10:48 +08:00

README.md

Effects 目录

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

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

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