From c3274bd31e2bb52f2581615e8691200f1e68910c Mon Sep 17 00:00:00 2001 From: Lei OT Date: Thu, 6 Jun 2024 21:48:38 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=8A=A5=E9=94=99=E6=97=B6,?= =?UTF-8?q?=20=E4=B8=8A=E4=BC=A0=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ErrorBoundary.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/ErrorBoundary.jsx b/src/components/ErrorBoundary.jsx index 845839d..9072959 100644 --- a/src/components/ErrorBoundary.jsx +++ b/src/components/ErrorBoundary.jsx @@ -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 \ No newline at end of file +export default ErrorBoundary