module-menu 0.2.14 → 0.2.15

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.14",
3
+ "version": "0.2.15",
4
4
  "description": "城市大数据平台公共头部及尾部",
5
5
  "main": "src/pages/index.jsx",
6
6
  "scripts": {
@@ -49,8 +49,7 @@ const ModuleUser = ({ stash }) => {
49
49
 
50
50
  const isHaveSystemManagementPermission = stash
51
51
  ? true
52
- : sessionStorage.getItem('bigdata-isHaveSystemManagementPermission');
53
-
52
+ : getStore({ name: 'isHaveSystemManagementPermission' });
54
53
  const DEFAULT_LOGOUT_URL = !stash ? '/#/login' : '/admin-ui/login';
55
54
 
56
55
  // 跳转服务门户
@@ -1,4 +1,4 @@
1
- // tokenInSessionStor存在为一体化,不存在为轻量级
1
+ // tokenInSessionStor不存在为一体化,存在为轻量级
2
2
  const tokenInSessionStor = window.sessionStorage.getItem('bigdata-access_token');
3
3
  /**
4
4
  * 获取认证相关的localStorage/SessionStorage