From 96273188d4f5e2e60b7fc1d7dc0ea5930bebc426 Mon Sep 17 00:00:00 2001 From: 6323f46df0dd9b1fa44f49b9 <6323f46df0dd9b1fa44f49b9@devide> Date: Tue, 11 Jul 2023 02:02:46 +0000 Subject: [PATCH] Auto Commit --- src/views/App.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/views/App.vue b/src/views/App.vue index 4a8ac09..929d670 100644 --- a/src/views/App.vue +++ b/src/views/App.vue @@ -116,17 +116,17 @@ export default { if (finish) { this.loading = false; - } else if (content) { - const text = content; - dialog.text += text; - } - axios({ + axios({ method: "post", url: "https://flask-wujiaping.inscode.cc/addhistory", data: dialog.text, }).then((res) => { console.log(res.data) }); + } else if (content) { + const text = content; + dialog.text += text; + } }, onerror: (err) => { console.log("error", err); -- GitLab