From 50204e8fdbb95c04b363416d55477b6455113c1e Mon Sep 17 00:00:00 2001 From: 6481820c3fb4c850008641af <6481820c3fb4c850008641af@devide> Date: Fri, 9 Jun 2023 07:11:00 +0000 Subject: [PATCH] Fri Jun 9 07:11:00 UTC 2023 inscode --- src/App.vue | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/src/App.vue b/src/App.vue index 2c02b7d..93805cd 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 -- GitLab