-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
docs: adjust objects docs #1140
Conversation
@atian25, thanks for your PR! By analyzing the history of the files in this pull request, we identified @dead-horse, @kaiye and @zousandian to be potential reviewers. |
@@ -122,7 +122,7 @@ Response 是一个**请求级别的对象**,继承自 [Koa.Response]。封装 | |||
// app/controller/user.js | |||
module.exports = app => { | |||
return class UserController extends app.Controller { | |||
*fetch () { | |||
* fetch() { | |||
const { app, ctx } = this; | |||
const id = ctx.request.query.id; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ctx.query,保持跟上面一致
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里是讲到 Request,所以才举例。
Codecov Report
@@ Coverage Diff @@
## master #1140 +/- ##
======================================
Coverage 99.7% 99.7%
======================================
Files 29 29
Lines 676 676
======================================
Hits 674 674
Misses 2 2 Continue to review full report at Codecov.
|
Checklist
Affected core subsystem(s)
Description of change