Auto Commit

上级 2db8e1e5
......@@ -106,7 +106,6 @@ export default {
},
onmessage: (msg) => {
if (msg.data === '[DONE]') {
this.loading = false;
axios({
method: "post",
url: "https://flask-wujiaping.inscode.cc/addhistory",
......@@ -114,6 +113,7 @@ export default {
}).then((res) => {
console.log(res.data)
});
this.loading = false;
return;
};
const data = JSON.parse(msg.data);
......@@ -129,17 +129,7 @@ export default {
}
},
onclose() {
axios({
method: "post",
url: "https://flask-wujiaping.inscode.cc/addhistory",
data: dialog.text,
}).then((res) => {
console.log(res.data)
});
console.log("close");
that.sendLoading = false;
abortController.abort();
eventSource.close();
},
onerror: (err) => {
console.log("error", err);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册