From c32386c21e3e04c31a2ffc7059339f2d53daa2fe Mon Sep 17 00:00:00 2001 From: fandaiyang <1147379969@qq.com> Date: Mon, 21 Oct 2024 13:39:02 +0800 Subject: [PATCH] feat: update --- src/layouts/LeftSidebarMenu/index.tsx | 4 ++-- src/layouts/RightSidebarMenu/index.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/layouts/LeftSidebarMenu/index.tsx b/src/layouts/LeftSidebarMenu/index.tsx index 18e8e6d1..b3744048 100644 --- a/src/layouts/LeftSidebarMenu/index.tsx +++ b/src/layouts/LeftSidebarMenu/index.tsx @@ -1,6 +1,6 @@ -import { useLocation, useNavigate } from "umi"; +import { useLocation, useNavigate } from "@umijs/max"; import styles from "./index.less"; -import { useEffect, useLayoutEffect, useState } from "react"; +import { useLayoutEffect, useState } from "react"; /** * @description 基于配置式的路由,卡片位置大小由后台提供 diff --git a/src/layouts/RightSidebarMenu/index.tsx b/src/layouts/RightSidebarMenu/index.tsx index dd2d08dd..8cb14462 100644 --- a/src/layouts/RightSidebarMenu/index.tsx +++ b/src/layouts/RightSidebarMenu/index.tsx @@ -1,6 +1,6 @@ -import { useLocation, useNavigate } from "umi"; +import { useLocation, useNavigate } from "@umijs/max"; import styles from "./index.less"; -import { useEffect, useLayoutEffect, useState } from "react"; +import { useLayoutEffect, useState } from "react"; /** * @description 基于配置式的路由,卡片位置大小由后台提供 -- GitLab