module-menu 0.2.2 → 0.2.5

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.2",
3
+ "version": "0.2.5",
4
4
  "description": "城市大数据平台公共头部及尾部",
5
5
  "main": "src/pages/index.jsx",
6
6
  "scripts": {
@@ -77,7 +77,7 @@ export const menuList = (stash) => [
77
77
  url: require('../../assets/muluguanli_slogo.png'),
78
78
  },
79
79
  {
80
- childName: '目录管理',
80
+ childName: '资源管理',
81
81
  path: '/ziyuanguanli',
82
82
  url: require('../../assets/ziyuanguanli_slogo.png'),
83
83
  },
@@ -20,7 +20,8 @@ const ModuleMenu = ({ sysName, stash }) => {
20
20
  const menuObj = JSON.parse(sessionStorage.getItem('bigdata-menu'));
21
21
  let menuGet = menuObj?.content || [];
22
22
  setSessionMenu(menuGet);
23
- getNewMenuList(menuGet);
23
+ const menuLists = getNewMenuList(menuGet);
24
+ setMenuList(menuLists);
24
25
  } else {
25
26
  Axios('get', '/admin-api/system/user/getUserMenusList', '', {})
26
27
  .then((res) => {
@@ -34,9 +35,10 @@ const ModuleMenu = ({ sysName, stash }) => {
34
35
  item.path.indexOf('/') !== -1 ? item.path : '/' + item.path,
35
36
  };
36
37
  });
38
+ setSessionMenu(menuGet);
39
+ const menuLists = getNewMenuList(menuGet);
40
+ setMenuList(menuLists);
37
41
  }
38
- setSessionMenu(menuGet);
39
- getNewMenuList(menuGet);
40
42
  })
41
43
  .catch((e) => console.log('e', e));
42
44
  }
@@ -37,7 +37,9 @@ const ModuleUser = ({ stash }) => {
37
37
  handleClickmenu('/dataadmin/#/index');
38
38
  };
39
39
 
40
- const curTenantId = stash ? getStore({ name: 'tenantId' }) : '';
40
+ const curTenantId = stash
41
+ ? getStore({ name: 'tenantId' }) && parseInt(getStore({ name: 'tenantId' }))
42
+ : '';
41
43
  const curTenantName = stash ? getStore({ name: 'tenantName' }) : '';
42
44
 
43
45
  const getTenantList = () => {
@@ -43,6 +43,10 @@
43
43
  box-shadow: none !important;
44
44
  }
45
45
 
46
+ :global(.right-select> .ant-select-arrow>.anticon) {
47
+ color: #000000 !important;
48
+ }
49
+
46
50
  .menu {
47
51
  :global(.anticon) {
48
52
  margin-right: 8px;