Auto Commit

上级 e5cbeb95
...@@ -116,17 +116,17 @@ export default { ...@@ -116,17 +116,17 @@ export default {
if (finish) { if (finish) {
this.loading = false; this.loading = false;
} else if (content) { axios({
const text = content;
dialog.text += text;
}
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)
}); });
} else if (content) {
const text = content;
dialog.text += text;
}
}, },
onerror: (err) => { onerror: (err) => {
console.log("error", err); console.log("error", err);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册