+
+
+
+
+ );
+}
diff --git a/src/routes/error.tsx b/src/routes/error.tsx
new file mode 100644
index 0000000..8f336bc
--- /dev/null
+++ b/src/routes/error.tsx
@@ -0,0 +1,33 @@
+import { Empty, helper, Button } from '@feewee/h5app-common';
+import { useNavigate, useRouteError } from '@modern-js/runtime/router';
+import { useCallback, useEffect } from 'react';
+
+function ErrorBoundary() {
+ const error: any = useRouteError();
+ const navigate = useNavigate();
+
+ const lisFn = useCallback((e: any) => {
+ if ('hardwareBackPress' == e.data) {
+ helper.checkBack(() => navigate(-1));
+ }
+ }, []);
+
+ useEffect(() => {
+ window.document.addEventListener('message', lisFn);
+
+ return () => {
+ window.document.removeEventListener('message', lisFn);
+ };
+ }, []);
+
+ return (
+