From b7747e4db2af6b243a16b9979c9c3b498de92081 Mon Sep 17 00:00:00 2001 From: yutent Date: Tue, 24 Oct 2023 18:30:27 +0800 Subject: [PATCH] v2 --- index.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/index.js b/index.js index 51f294d..30f2cff 100644 --- a/index.js +++ b/index.js @@ -5,13 +5,6 @@ */ export default class Controller { - // 初始化方法, 取代原先的构造方法 - __f_i_v_e__(ctx, req, res) { - this.context = ctx - this.name = req.app - this.request = req - this.response = res - } // 定义一个模板变量 assign(key, val) {