Auto Commit

上级 d542ea94
...@@ -120,18 +120,18 @@ export default { ...@@ -120,18 +120,18 @@ export default {
const text = content; const text = content;
dialog.text += text; dialog.text += text;
} }
}, axios({
onerror: (err) => {
console.log("error", err);
}
});
axios({
method: "post", method: "post",
url: "https://flask-wujiaping.inscode.cc/addhistory", url: "https://flask-wujiaping.inscode.cc/addhistory",
data: this.dialogs, data: this.dialogs,
}).then((res) => { }).then((res) => {
console.log(res.data) console.log(res.data)
}); });
},
onerror: (err) => {
console.log("error", err);
}
});
}, },
handleNewChat() { handleNewChat() {
this.dialogs = []; this.dialogs = [];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册