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 });