Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
rip
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fanxuehui
rip
Commits
6d9f33f0
Commit
6d9f33f0
authored
Aug 28, 2019
by
aiduck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fetch调用本地接口
parent
7e5f9aaf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
reporter.js
src/lib/reporter.js
+2
-2
No files found.
src/lib/reporter.js
View file @
6d9f33f0
...
...
@@ -110,8 +110,8 @@ class Reporter {
return
;
}
try
{
//
fetch(`${this.environmentUrl}/behavior/record`, {
fetch
(
`http://localhost:3000/behavior/record`
,
{
fetch
(
`
${
this
.
environmentUrl
}
/behavior/record`
,
{
//
fetch(`http://localhost:3000/behavior/record`, {
method
:
"POST"
,
credentials
:
"include"
,
headers
:
new
Headers
({
"content-type"
:
"application/json"
}),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment