Update dependencies. Add page. Optimize code.

This commit is contained in:
2023-11-01 14:47:41 +08:00
parent aa295db6ae
commit b548fb8083
19 changed files with 734 additions and 515 deletions

View File

@@ -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>
</>

View File

@@ -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}

View File

@@ -0,0 +1,7 @@
import React from 'react'
const Group: React.FC = () => {
return <></>
}
export default Group

View File

@@ -0,0 +1,7 @@
import React from 'react'
const Role: React.FC = () => {
return <></>
}
export default Role

View File

@@ -0,0 +1,7 @@
import React from 'react'
const User: React.FC = () => {
return <></>
}
export default User

View 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
View File

@@ -0,0 +1,7 @@
import React from 'react'
const User: React.FC = () => {
return <></>
}
export default User