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() {
   async exitroom() {
     const { ctx } = this;
     const { ctx } = this;
     const { uid, roomid } = this.ctx.query;
     const { uid, roomid } = this.ctx.query;
+    await this.ctx.controller.chat.index();
     const newdata = { uid, roomid };
     const newdata = { uid, roomid };
     this.ctx.socket.emit('message', JSON.stringify(newdata));
     this.ctx.socket.emit('message', JSON.stringify(newdata));
     ctx.body = 'hi, egg';
     ctx.body = 'hi, egg';