import React from "react" import { Result, Button, Typography } from "antd" import { CloseCircleOutlined } from "@ant-design/icons" import config from "config" import "./index.less" const { Paragraph, Text } = Typography const ErrorEntry = (props) => { const { error } = props if (!error) { return
Unhandled error
} return
{error.info.toString()}
} export default (props) => { let errors = [] if (Array.isArray(props.error)) { errors = props.error } else { errors.push(props.error) } const onClickGoMain = () => { window.app.setLocation(config.app.mainPath ?? "/main") } const onClickReload = () => { window.location.reload() } return (
Go Main , , ]} > We catch the following errors:
{errors.map((error, index) => { return })}
) }