liuyu 4 years ago
parent
commit
4837b7b441
1 changed files with 1 additions and 0 deletions
  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';