路由懒加载 + loading

This commit is contained in:
none
2023-03-21 13:45:43 +08:00
parent a0a6744404
commit a5a57c1b99
3 changed files with 16 additions and 2 deletions

View File

@@ -3,6 +3,7 @@ import { RouteObject } from "react-router-dom";
import { LayoutPage } from "../pages";
// 懒加载
const LoginPage = lazy(() => import('../pages/login'))
const routes: RouteObject[] = [