From 180553283d3bfa2397e7b6f1427c586eff5ac001 Mon Sep 17 00:00:00 2001 From: icssoa <615206459@qq.com> Date: Tue, 14 Jun 2022 17:54:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=81=8A=E5=A4=A9=E6=A8=A1?= =?UTF-8?q?=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/modules/chat/components/index.vue | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index d2c60e7..29b1bb7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "front-next", - "version": "5.3.0", + "version": "5.4.0", "scripts": { "dev": "vite --host", "build": "vite build", diff --git a/src/modules/chat/components/index.vue b/src/modules/chat/components/index.vue index 6083314..22f00aa 100644 --- a/src/modules/chat/components/index.vue +++ b/src/modules/chat/components/index.vue @@ -176,7 +176,9 @@ async function refresh() { } provide("chat", { - socket, + get socket() { + return socket; + }, send, scrollToBottom });