添加聊天模块

This commit is contained in:
icssoa 2022-06-14 17:54:31 +08:00
parent 68858f794c
commit 180553283d
2 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "front-next", "name": "front-next",
"version": "5.3.0", "version": "5.4.0",
"scripts": { "scripts": {
"dev": "vite --host", "dev": "vite --host",
"build": "vite build", "build": "vite build",

View File

@ -176,7 +176,9 @@ async function refresh() {
} }
provide("chat", { provide("chat", {
socket, get socket() {
return socket;
},
send, send,
scrollToBottom scrollToBottom
}); });