Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit bf56c09c
authored
Jun 20, 2023
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
sentry 报错尝试修复
1 parent
22e3d4c4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletions
src/main.js
src/main.js
View file @
bf56c09
...
@@ -38,7 +38,22 @@ process.env.NODE_ENV === "production" &&
...
@@ -38,7 +38,22 @@ process.env.NODE_ENV === "production" &&
// of transactions for performance monitoring.
// of transactions for performance monitoring.
// We recommend adjusting this value in production
// We recommend adjusting this value in production
tracesSampleRate
:
1.0
,
tracesSampleRate
:
1.0
,
logErrors
:
true
logErrors
:
true
,
// 解决火狐浏览器 无法捕获错误的问题
beforeSend
(
event
,
hint
)
{
const
isNonErrorException
=
event
.
exception
.
values
[
0
].
value
.
startsWith
(
"Non-Error exception captured"
)
||
hint
.
originalException
.
message
.
startsWith
(
"Non-Error exception captured"
)
if
(
isNonErrorException
)
{
// We want to ignore those kind of errors
return
null
}
return
event
}
// "send-default-pii": true
// "send-default-pii": true
})
})
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment