Auto Commit

上级 98cb80c4
...@@ -125,14 +125,13 @@ export default { ...@@ -125,14 +125,13 @@ export default {
console.log("error", err); console.log("error", err);
} }
}); });
fetch("https://flask-wujiaping.inscode.cc/addhistory", {
axios({ method: 'POST',
method: "post", headers: {
url: "https://flask-wujiaping.inscode.cc/addhistory", 'Content-Type': 'application/json'
data: this.dialogs, },
}).then((res) => { body: JSON.stringify(data)
console.log(res.data) }).then((res) => console.log(res.data) )
});
}, },
handleNewChat() { handleNewChat() {
this.dialogs = []; this.dialogs = [];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册