Skip to content

feat: Send data using delete#45

Merged
clock157 merged 2 commits into
umijs:masterfrom
xchunzhao:master
Apr 20, 2019
Merged

feat: Send data using delete#45
clock157 merged 2 commits into
umijs:masterfrom
xchunzhao:master

Conversation

@xchunzhao
Copy link
Copy Markdown
Contributor

当method=delete时候,删除多条记录body没有包装。#44

@clock157
Copy link
Copy Markdown
Contributor

赞,但是能加一个单测吗?@xchunzhao

@xchunzhao
Copy link
Copy Markdown
Contributor Author

@clock157 加了。

Comment thread test/index.test.js
import request, { extend } from "../src/index";
import { MapCache } from "../src/utils";
const debug = require("debug")("afx-request:test");
import createTestServer from 'create-test-server';
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个不应该改

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我看看。应该是prettier做的

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个不应该改

prettier配置的规则是单引号。

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

检查发现 package.json 的 lintStage 一直未生效,因为参数错误。我合了,新拉个分支使用 umi-lint 修复 prettier 的问题。
"prettier --write --singleQuote=true --trailingComma=all --printWidth=120"

@clock157 clock157 merged commit e9e4332 into umijs:master Apr 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants