增加空白判断
This commit is contained in:
		| @@ -48,6 +48,7 @@ export default { | ||||
|       } | ||||
|     }, | ||||
|     handleSend() { | ||||
|       if (!this.prompt.trim()) return this.$message.error("无法发送空白信息,请输入资讯的内容") | ||||
|       const concatenateStr = (content, i = 0) => { | ||||
|         this.history.at(-1).content += content.slice(i, i + 1) | ||||
|         if (++i < content.length) setTimeout(() => concatenateStr(content, i), 50) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user