2
0
yourname 7 сар өмнө
parent
commit
3ff82e56b9

+ 1 - 1
client/mobile/pages_classroom.tsx

@@ -176,7 +176,7 @@ export const ClassroomPage = () => {
 
   // 消息管理模块
   const showMessage = (text: string): void => {
-    setMessageList([...messageList, text]);
+    setMessageList((prevMessageList) => [...prevMessageList, text])
   };
 
   const listenImEvents = (): void => {