页面报错时, 上传日志

hotfix/new-conversation
Lei OT 1 year ago
parent 21d03528f5
commit c3274bd31e

@ -15,6 +15,7 @@ class ErrorBoundary extends PureComponent {
componentDidCatch(error, info) {
console.error('Sorry, Something went wrong.')
console.error(error)
window.$pageSpy.triggerPlugins('onOfflineLog', 'upload');
this.setState({ hasError: true, info: error.message })
}
@ -30,4 +31,4 @@ class ErrorBoundary extends PureComponent {
}
}
export default ErrorBoundary
export default ErrorBoundary

Loading…
Cancel
Save