import { FC, useEffect } from 'react';
import { ErrorBlock, NavBar } from 'antd-mobile';
import { history } from '../utils/umiExport';
import React from 'react';

interface Props {
  [key: string]: any;
}
const Err: FC<Props> = () => {
  const back = () => {
    history.back();
  };
  useEffect(() => {
    document.body.style.background = '#ffffff';
  }, []);
  return (
    <>
      <NavBar onBack={back}>页面不存在</NavBar>
      <ErrorBlock fullPage />
    </>
  );
};
export default Err
