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