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