Fri Jun 9 07:11:00 UTC 2023 inscode

上级 b290a8e3
......@@ -29,7 +29,11 @@ export default {
return {
question: '',
loading: false,
dialogs: []
dialogs: [{
id: 3423,
role: 'ai',
text: '美人鱼的眼泪'
}]
}
},
methods: {
......@@ -99,17 +103,22 @@ export default {
this.loading = false;
} else if (content) {
const text = content;
dialog.text += text;
for(let i=0;i<text.length;i++){
setTimeout
dialog.text += text[i];
}
}
},
onerror: (err) => {
console.log("error", err);
}
},
});
},
handleNewChat() {
this.dialogs = [];
}
},
typing
}
}
</script>
......@@ -161,8 +170,8 @@ export default {
/* 光标闪烁动画 */
@keyframes blink {
from{ display: inline; }
to { display: none; }
from{ opacity: 0; }
to { opacity: 1; }
}
</style>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册