module-menu 0.2.22 → 0.2.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.2.22",
3
+ "version": "0.2.23",
4
4
  "description": "城市大数据平台公共头部及尾部",
5
5
  "main": "src/pages/index.jsx",
6
6
  "scripts": {
@@ -26,7 +26,10 @@ const ModuleUser = ({ stash }) => {
26
26
  };
27
27
  const handleClickSysManage = () => {
28
28
  if (!stash) {
29
- window.location.href = '/#/admin/user/index';
29
+ const menuList = getStore({name: 'menu'});
30
+ const sysManagePath= menuList?.find(item=>item.name === '权限管理').children[0].path
31
+ window.location.href = '/#'+ sysManagePath
32
+ // '/#/admin/user/index';
30
33
  } else {
31
34
  Axios('get', '/admin-api/system/auth/homePage', '', {})
32
35
  .then((res) => {