|
@@ -18,7 +18,8 @@ import Content from './content'; |
|
|
import userService from '@/request/service/user'; |
|
|
import userService from '@/request/service/user'; |
|
|
import authService from '@/request/service/auth'; |
|
|
import authService from '@/request/service/auth'; |
|
|
import { useRequest } from "@/hooks/use-request"; |
|
|
import { useRequest } from "@/hooks/use-request"; |
|
|
// import menuData from '../../mock/menu.json' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const BasicLayout: React.FC = () => { |
|
|
const BasicLayout: React.FC = () => { |
|
|
|
|
|
|
|
@@ -103,7 +104,8 @@ const BasicLayout: React.FC = () => { |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
menuList.data.forEach(item => fixAndPushMenu(item)) |
|
|
|
|
|
|
|
|
menuList.data.forEach(item => fixAndPushMenu(item)); |
|
|
|
|
|
|
|
|
setMenus(menuList.data) //([...formatedMenus, ...menuList.data]); |
|
|
setMenus(menuList.data) //([...formatedMenus, ...menuList.data]); |
|
|
console.log('components', components); |
|
|
console.log('components', components); |
|
|
replaceRoutes('*', [ |
|
|
replaceRoutes('*', [ |
|
|