Update dependencies. Add page. Optimize code.
This commit is contained in:
@@ -5,6 +5,7 @@ import FitFullScreen from '@/components/common/FitFullScreen'
|
||||
import Sidebar from '@/components/common/sidebar'
|
||||
import SidebarItemList from '@/components/common/sidebar/SidebarItemList'
|
||||
import SidebarItem from '@/components/common/sidebar/SidebarItem'
|
||||
import LoadingMask from '@/components/common/LoadingMask'
|
||||
|
||||
const SystemFramework: React.FC = () => {
|
||||
return (
|
||||
@@ -16,6 +17,7 @@ const SystemFramework: React.FC = () => {
|
||||
{system.map((value) => {
|
||||
return value.menu ? (
|
||||
<SidebarItem
|
||||
end={value.id === 'system' ? true : undefined}
|
||||
path={value.absolutePath}
|
||||
icon={value.icon}
|
||||
text={value.name}
|
||||
@@ -27,7 +29,15 @@ const SystemFramework: React.FC = () => {
|
||||
</Sidebar>
|
||||
</div>
|
||||
<div className={'right-panel'}>
|
||||
<Outlet />
|
||||
<Suspense
|
||||
fallback={
|
||||
<>
|
||||
<LoadingMask />
|
||||
</>
|
||||
}
|
||||
>
|
||||
<Outlet />
|
||||
</Suspense>
|
||||
</div>
|
||||
</FitFullScreen>
|
||||
</>
|
||||
|
||||
@@ -30,6 +30,7 @@ const ToolsFramework: React.FC = () => {
|
||||
{user.map((value) => {
|
||||
return value.menu ? (
|
||||
<SidebarItem
|
||||
end={value.id === 'user' ? true : undefined}
|
||||
path={value.absolutePath}
|
||||
icon={value.icon}
|
||||
text={value.name}
|
||||
|
||||
7
src/pages/system/Group.tsx
Normal file
7
src/pages/system/Group.tsx
Normal file
@@ -0,0 +1,7 @@
|
||||
import React from 'react'
|
||||
|
||||
const Group: React.FC = () => {
|
||||
return <></>
|
||||
}
|
||||
|
||||
export default Group
|
||||
7
src/pages/system/Role.tsx
Normal file
7
src/pages/system/Role.tsx
Normal file
@@ -0,0 +1,7 @@
|
||||
import React from 'react'
|
||||
|
||||
const Role: React.FC = () => {
|
||||
return <></>
|
||||
}
|
||||
|
||||
export default Role
|
||||
7
src/pages/system/User.tsx
Normal file
7
src/pages/system/User.tsx
Normal file
@@ -0,0 +1,7 @@
|
||||
import React from 'react'
|
||||
|
||||
const User: React.FC = () => {
|
||||
return <></>
|
||||
}
|
||||
|
||||
export default User
|
||||
7
src/pages/system/index.tsx
Normal file
7
src/pages/system/index.tsx
Normal file
@@ -0,0 +1,7 @@
|
||||
import React from 'react'
|
||||
|
||||
const System: React.FC = () => {
|
||||
return <></>
|
||||
}
|
||||
|
||||
export default System
|
||||
7
src/pages/user/index.tsx
Normal file
7
src/pages/user/index.tsx
Normal file
@@ -0,0 +1,7 @@
|
||||
import React from 'react'
|
||||
|
||||
const User: React.FC = () => {
|
||||
return <></>
|
||||
}
|
||||
|
||||
export default User
|
||||
Reference in New Issue
Block a user