正在显示
1 个修改的文件
包含
6 行增加
和
11 行删除
| ... | ... | @@ -2,16 +2,11 @@ |
| 2 | 2 | |
| 3 | 3 | const Controller = require('egg').Controller; |
| 4 | 4 | |
| 5 | -// class HomeController extends Controller { | |
| 6 | -// async index() { | |
| 7 | -// const { ctx } = this; | |
| 8 | -// ctx.body = 'hi,egg'; | |
| 9 | -// } | |
| 10 | -// } | |
| 11 | - | |
| 12 | -exports.index = async () => { | |
| 13 | - const { ctx } = this; | |
| 14 | - ctx.body = 'hi,egg'; | |
| 15 | -}; | |
| 5 | +class HomeController extends Controller { | |
| 6 | + async index() { | |
| 7 | + const { ctx } = this; | |
| 8 | + ctx.body = 'hi,egg'; | |
| 9 | + } | |
| 10 | +} | |
| 16 | 11 | |
| 17 | 12 | module.exports = HomeController; | ... | ... |
请
注册
或
登录
后发表评论