Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Send data using delete #45

Merged
merged 2 commits into from
Apr 20, 2019
Merged

feat: Send data using delete #45

merged 2 commits into from
Apr 20, 2019

Conversation

xchunzhao
Copy link
Contributor

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

@clock157
Copy link
Contributor

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

@xchunzhao
Copy link
Contributor Author

@clock157 加了。

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
Contributor

Choose a reason for hiding this comment

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

这个不应该改

Copy link
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
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
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