Commit 6d9f33f0 authored by aiduck's avatar aiduck

fetch调用本地接口

parent 7e5f9aaf
...@@ -110,8 +110,8 @@ class Reporter { ...@@ -110,8 +110,8 @@ 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",
headers: new Headers({ "content-type": "application/json" }), headers: new Headers({ "content-type": "application/json" }),
......
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