liuyu 5 лет назад
Родитель
Сommit
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';