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 +1 -1
- package/src/.umi/.cache/babel-loader/00c1d6c600e442da54249fbd2c9d2686.json.gz +0 -0
- package/src/.umi/.cache/babel-loader/6632ec98d5b37889b94886ed4e4fc6ea.json.gz +0 -0
- package/src/.umi/.cache/babel-loader/b5339a628d739f823600043f677bb7b0.json.gz +0 -0
- package/src/pages/ModuleMenu/index.jsx +1 -1
- package/src/pages/ModuleUser/index.jsx +1 -1
- package/src/pages/index.jsx +1 -1
package/package.json
CHANGED
|
@@ -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: '
|
|
53
|
+
<img src={LogoutSrc} alt="" style={{ width: '15px', height: '15px', marginRight: '10px' }} />
|
|
54
54
|
<span>退出登录</span>
|
|
55
55
|
</Menu.Item>
|
|
56
56
|
</Menu>
|
package/src/pages/index.jsx
CHANGED