Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
foreign
/
customer-service
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
ea095725
authored
Dec 31, 2021
by
Sixong.Zhu
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
update
parent
0456b118
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
service/monitor.ts
service/monitor.ts
View file @
ea095725
...
@@ -46,7 +46,7 @@ class WebMonitor {
...
@@ -46,7 +46,7 @@ class WebMonitor {
}
}
private
enable
()
{
private
enable
()
{
return
this
.
envir
=
==
ImEnvironment
.
Dev
;
return
this
.
envir
!
==
ImEnvironment
.
Dev
;
}
}
private
envirString
()
{
private
envirString
()
{
...
@@ -113,16 +113,19 @@ class WebMonitor {
...
@@ -113,16 +113,19 @@ class WebMonitor {
msg
.
push
(
`CurrentOrg:
${
header
.
CurrentOrg
}
`
);
msg
.
push
(
`CurrentOrg:
${
header
.
CurrentOrg
}
`
);
msg
.
push
(
`Scenes:
${
header
.
Scenes
}
`
);
msg
.
push
(
`Scenes:
${
header
.
Scenes
}
`
);
}
}
options
&&
options
.
userAgent
&&
msg
.
push
(
`UserAgent:
${
this
.
getUa
()}
`
);
r
.
config
&&
r
.
config
.
data
&&
msg
.
push
(
`Payload:
${
JSON
.
stringify
(
r
.
config
.
data
)}
`
);
msg
.
push
(
msg
.
push
(
`Exception:
${((
r
.
data
.
error
as
string
)
||
""
).
substring
(
`Exception:
${((
r
.
data
.
error
as
string
)
||
""
).
substring
(
0
,
0
,
500
500
)}
`
)}
`
);
);
options
&&
options
.
userAgent
&&
msg
.
push
(
`UserAgent:
${
window
.
navigator
.
userAgent
}
`
);
r
.
config
&&
r
.
config
.
data
&&
msg
.
push
(
`Payload:
${
JSON
.
stringify
(
r
.
config
.
data
)}
`
);
r
&&
r
.
config
&&
this
.
error
(
msg
.
join
(
"\n"
));
r
&&
r
.
config
&&
this
.
error
(
msg
.
join
(
"\n"
));
}
}
});
});
...
...
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