import "@/assets/styles/base.css";
// 关于路由
import React from "react";
import { Router, Route, Switch } from "react-router-dom";
import history from "./utils/history";
import SpinLoding from "./components/SpinLoding";
import MessageCom from "./components/Message";
import NotFound from "./components/NotFound";
const A1Home = React.lazy(() => import("./pages/A1Home"));

export default function App() {
  return (
    <>
      {/* 关于路由 */}
      <Router history={history}>
        <React.Suspense fallback={<SpinLoding />}>
          <Switch>
            {/* 首页 */}
            <Route path="/" exact component={A1Home} />

            {/* 找不到页面 */}
            <Route path="*" component={NotFound} />
          </Switch>
        </React.Suspense>
      </Router>

      {/* antd 轻提示 ---兼容360浏览器 */}
      <MessageCom />
    </>
  );
}
