fix set chat example

This commit is contained in:
2023-07-12 18:24:33 +08:00
parent d2f21f44bb
commit 9a132b007e

View File

@@ -157,16 +157,13 @@ export default function Message(props: Props) {
</div> </div>
</div> </div>
)} )}
<span> <span
<label onClick={(event: any) => {
className="dark:text-white" chat.example = !chat.example;
onClick={(event: any) => { setChatStore({ ...chatStore });
chat.example = !chat.example; }}
setChatStore({ ...chatStore }); >
}} <label className="dark:text-white">example</label>
>
example
</label>
<input type="checkbox" checked={chat.example} /> <input type="checkbox" checked={chat.example} />
</span> </span>
</div> </div>