diff --git a/src/App.vue b/src/App.vue index 664cd3bc9f067098342323ef1bc6a67be5256903..bf2b6fb76f6c617a3918ebdf8bf44262d0c570aa 100644 --- a/src/App.vue +++ b/src/App.vue @@ -30,8 +30,8 @@ import { apiKey, apiUrl } from './api'; export default { data() { return { - question: '', - loading: false, + question: '你好', + loading: true, dialogs: [] } }, @@ -45,7 +45,7 @@ export default { this.dialogs.push({ id: this.dialogs.length + 1, - role: 'me', + role: 'wo', text: question }); @@ -54,8 +54,9 @@ export default { this.dialogs.push({ id: aiDialogID, role: 'ai', - text: 'AI 思考中...' + text: '正载' }); + const dialog = this.dialogs.find(item => item.id === aiDialogID);