From 8172bf3ac9d7cd1ee84f29d6eb60ee4906091b1b Mon Sep 17 00:00:00 2001 From: 6323f46df0dd9b1fa44f49b9 <6323f46df0dd9b1fa44f49b9@devide> Date: Tue, 11 Jul 2023 01:55:54 +0000 Subject: [PATCH] Auto Commit --- src/views/App.vue | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/views/App.vue b/src/views/App.vue index e335173..6f3eb0a 100644 --- a/src/views/App.vue +++ b/src/views/App.vue @@ -120,18 +120,18 @@ export default { const text = content; dialog.text += text; } - }, - onerror: (err) => { - console.log("error", err); - } - }); - axios({ + axios({ method: "post", url: "https://flask-wujiaping.inscode.cc/addhistory", data: this.dialogs, }).then((res) => { console.log(res.data) }); + }, + onerror: (err) => { + console.log("error", err); + } + }); }, handleNewChat() { this.dialogs = []; -- GitLab