Files
electron-egg/app/controller/home.js
gaoshuaixing 78621e0222 1
2022-02-21 10:02:21 +08:00

22 lines
348 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
'use strict';
const BaseController = require('./base');
class HomeController extends BaseController {
/**
* 单页应用入口vue、react等
*/
async index() {
const { ctx } = this;
const data = {
title: 'hello electron-egg'
};
await ctx.render('index.ejs', data);
}
}
module.exports = HomeController;