diff --git a/index.js b/index.js index 198837d..928ea43 100644 --- a/index.js +++ b/index.js @@ -94,7 +94,7 @@ export default class Controller { this.response.cookie(key, val, opt) } - // 会话读写 + // 会话读写, 返回的是Promise对象 session(key, val) { let { ssid } = this.request if (this.context.$$session) { diff --git a/package.json b/package.json index 11981e0..acf458c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@gm5/controller", - "version": "2.0.1", + "version": "2.0.2", "type": "module", "description": "控制器基类。", "main": "index.js",