vue-vben-admin/packages/effects
Netfan 22e6f28464
Some checks are pending
CI / Test (ubuntu-latest) (push) Waiting to run
CI / Test (windows-latest) (push) Waiting to run
CI / Lint (ubuntu-latest) (push) Waiting to run
CI / Lint (windows-latest) (push) Waiting to run
CI / Check (ubuntu-latest) (push) Waiting to run
CI / Check (windows-latest) (push) Waiting to run
CI / CI OK (push) Blocked by required conditions
CodeQL / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Waiting to run
Deploy Website on push / Deploy Push Playground Ftp (push) Waiting to run
Deploy Website on push / Deploy Push Docs Ftp (push) Waiting to run
Deploy Website on push / Deploy Push Antd Ftp (push) Waiting to run
Deploy Website on push / Deploy Push Element Ftp (push) Waiting to run
Deploy Website on push / Deploy Push Naive Ftp (push) Waiting to run
Deploy Website on push / Rerun on failure (push) Blocked by required conditions
Release Drafter / update_release_draft (push) Waiting to run
perf: easy to define fieldName of response data (#5442)
2025-01-20 18:38:49 +08:00
..
access feat: add noBasicLayout in route meta (#5386) 2025-01-14 12:12:08 +08:00
common-ui fix: mouse events ignored on modal loading (#5409) 2025-01-16 12:17:08 +08:00
hooks refactor: fix popup component zIndex (#5397) 2025-01-15 12:32:03 +08:00
layouts feat: allow close tab when mouse middle button click (#5347) 2025-01-10 20:52:31 +08:00
plugins fix: useEcharts return invalid instance (#5360) 2025-01-12 09:54:37 +08:00
request perf: easy to define fieldName of response data (#5442) 2025-01-20 18:38:49 +08:00
README.md refactor: adjust all sample pages and use page components (#4118) 2024-08-11 20:05:52 +08:00

Effects 目录

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

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

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