mirror of
https://github.com/PlayEdu/frontend.git
synced 2025-12-23 18:59:44 +08:00
路由懒加载 + loading
This commit is contained in:
@@ -3,6 +3,7 @@ import { RouteObject } from "react-router-dom";
|
||||
|
||||
import { LayoutPage } from "../pages";
|
||||
|
||||
// 懒加载
|
||||
const LoginPage = lazy(() => import('../pages/login'))
|
||||
|
||||
const routes: RouteObject[] = [
|
||||
|
||||
Reference in New Issue
Block a user