nocobase/docs/plugins/concepts/actions.md
chenos d5d0e1036b
docs: add docs (#75)
* docs: add docs

* ignore dumi theme test

* fix: error TS2717: Subsequent property declarations must have the same type.

* update docs

* deploy gh-pages

* plugins docs

* hash & cname

* exportStatic

* ssr

* vercel

* vercel

* fix: deploy vercel

* Delete vercel.json

* docs

* fix APP_DIST

* on master branch
2021-04-17 21:33:21 +08:00

328 B

title group
Actions - 操作方法
order title
2 概念

Actions - 操作方法

与 resourcer.registerAction 用法一致

export async function get(ctx, next) {
  await next();
}

export const list = {
  filter,
  fields, // 初始化的参数
  async handler(ctx, next) {
    await next();
  }
}