liuyu %!s(int64=4) %!d(string=hai) anos
pai
achega
4837b7b441
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      app/controller/home.js

+ 1 - 0
app/controller/home.js

@@ -11,6 +11,7 @@ class HomeController extends Controller {
   async exitroom() {
     const { ctx } = this;
     const { uid, roomid } = this.ctx.query;
+    await this.ctx.controller.chat.index();
     const newdata = { uid, roomid };
     this.ctx.socket.emit('message', JSON.stringify(newdata));
     ctx.body = 'hi, egg';