Auto Commit

上级 cd08067c
...@@ -106,13 +106,13 @@ export default { ...@@ -106,13 +106,13 @@ export default {
}, },
onmessage: (msg) => { onmessage: (msg) => {
if (msg.data === '[DONE]') { if (msg.data === '[DONE]') {
axios({ // axios({
method: "post", // method: "post",
url: "https://flask-wujiaping.inscode.cc/addhistory", // url: "https://flask-wujiaping.inscode.cc/addhistory",
data: dialog.text, // data: dialog.text,
}).then((res) => { // }).then((res) => {
console.log(res.data) // console.log(res.data)
}); // });
this.loading = false; this.loading = false;
return; return;
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册