liuyu 4 년 전
부모
커밋
4837b7b441
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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';