module-menu 0.1.21 → 0.1.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "module-menu",
3
- "version": "0.1.21",
3
+ "version": "0.1.23",
4
4
  "description": "城市大数据平台公共头部及尾部",
5
5
  "main":"src/pages/index.jsx",
6
6
  "scripts": {
@@ -158,7 +158,7 @@ const ModuleMenu = ({sysName}) => {
158
158
  newMenuList[index].children.splice(index_ch, 1)
159
159
  }
160
160
  }
161
- if (menuItem.children.length === 0) {
161
+ if (menuItem.children.length === 0 && menuItem.name !== '首页') {
162
162
  newMenuList.splice(index, 1)
163
163
  }
164
164
  }
@@ -50,7 +50,7 @@ const ModuleUser = () => {
50
50
  <span>系统管理</span>
51
51
  </Menu.Item>}
52
52
  <Menu.Item key="logout" onClick={()=>logout()}>
53
- <img src={LogoutSrc} alt="" style={{ width: '15px', height: '15px', marginRight: '6px' }} />
53
+ <img src={LogoutSrc} alt="" style={{ width: '15px', height: '15px', marginRight: '10px' }} />
54
54
  <span>退出登录</span>
55
55
  </Menu.Item>
56
56
  </Menu>
@@ -2,4 +2,4 @@ import ModuleMenu from './ModuleMenu'
2
2
  import ModuleUser from './ModuleUser'
3
3
  import Footer from './Footer'
4
4
  export {ModuleMenu,ModuleUser,Footer}
5
- // export default ModuleMenu
5
+ // export default ModuleUser