@aligov/task
v1.0.10
Published
任务查询、更新
Downloads
40
Readme
@aligov/task
政务任务SDK封装,主要内容包括 任务创建、任务查询、任务幂等、任务更新、 Cookie、网络请求、Util工具库等。
二次开发
开发方式
import TaskFac, {Util} from "@aligov/task";
const taskProps = {
domain: 'xxxx', //cookie 相关操作都中在这个cookie 下面
expires: 9999, // cookie 生效时间
path: "/",
};
const TASK = new TaskFac(taskProps);
TASK.createTask(type: any, request: any);
TASK.queryTask(type: string | null, code?: string, status?: string)
const t = await Util.get(url,{data:123})
构建
构建 src 目录下的源码, 并生成 ES5 代码到 lib 目录中 NPM包代码统一只构建,不打包。统一css 采用scss 来做。
just build
发布
发布组件至 tnpm 上
npm publish
tnpm publish