Commit 3d007a12 authored by fanxuehui's avatar fanxuehui

fix(header):

parent 6996a6f0
...@@ -110,11 +110,11 @@ class Reporter { ...@@ -110,11 +110,11 @@ class Reporter {
return; return;
} }
try { try {
fetch(`${this.environmentUrl}/behavior/record`, { // fetch(`${this.environmentUrl}/behavior/record`, {
// fetch(`http://localhost:3000/behavior/record`, { fetch(`http://localhost:3000/behavior/record`, {
method: "POST", method: "POST",
credentials: "include", credentials: "include",
"Content-Type": "application/json;charset=utf-8", headers: new Headers({ "content-type": "application/json" }),
body: JSON.stringify({ tracks: data }), body: JSON.stringify({ tracks: data }),
}).then(res => { }).then(res => {
log("上传返回的内容", res); log("上传返回的内容", res);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment