添加网页调试
This commit is contained in:
@@ -5,4 +5,11 @@ export default class HomeController extends Controller {
|
||||
const { ctx } = this;
|
||||
ctx.body = await ctx.service.test.sayHi('egg');
|
||||
}
|
||||
|
||||
public async dev() {
|
||||
const { ctx } = this;
|
||||
await ctx.render('index',{
|
||||
title: 'xxx'
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user