()
| 102 | |
| 103 | // 重置文本框高度的函数 |
| 104 | const resetTextareaHeight = () => { |
| 105 | const textarea = document.querySelector("textarea") as HTMLTextAreaElement |
| 106 | if (textarea) { |
| 107 | textarea.style.height = "38px" |
| 108 | } |
| 109 | } |
| 110 | |
| 111 | // 提交查询并开始流式响应 |
| 112 | const handleSubmit = async (e: React.FormEvent) => { |
no outgoing calls
no test coverage detected