Remove pages

This commit is contained in:
saplf
2019-09-04 16:14:16 +08:00
parent 254cc52585
commit df25ff4244
4 changed files with 7 additions and 25 deletions

View File

@@ -17,7 +17,7 @@ const HomePage: React.FC<RouterTypes & DispatchProp & HomeModelState> = ({
location: { pathname },
children,
}) => {
if (pathname === '/home') return <Redirect to="/home/home" />
if (pathname === '/home') return <Redirect to="/home/estate" />
return (
<div className={styles.home}>

View File

@@ -18,12 +18,12 @@ export interface HomeModelState {
}
const tabItems: TabItemModels = [
{
key: '/home/home',
name: 'home.tabHome',
icon: homeIcon,
iconSelected: homeIconS,
},
// {
// key: '/home/home',
// name: 'home.tabHome',
// icon: homeIcon,
// iconSelected: homeIconS,
// },
{
key: '/home/estate',
name: 'home.tabEstate',

View File

@@ -48,16 +48,6 @@ const ProfilePage: React.FC<UserModelState & DispatchProp> = ({
title="profile.system"
onClick={() => dispatch(routerRedux.push('/system'))}
/>
<SettingItem
className="group"
logo={logoIdentity}
title="profile.identity"
/>
<SettingItem
className="group"
logo={logoMsg}
title="profile.msg"
/>
<SettingItem
className="group"
logo={logoAbout}