diff --git a/src/App.vue b/src/App.vue index 2c02b7d21ffbd7621a849472d9eb7ed3a887ffd0..93805cd4b64fbccd49092303f8b2673a026f7d83 100644 --- a/src/App.vue +++ b/src/App.vue @@ -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 { console.log("error", err); - } + }, }); }, handleNewChat() { this.dialogs = []; - } + }, + typing } } @@ -161,8 +170,8 @@ export default { /* 光标闪烁动画 */ @keyframes blink { - from{ display: inline; } - to { display: none; } + from{ opacity: 0; } + to { opacity: 1; } } \ No newline at end of file