module-menu 0.2.13 → 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.13",
3
+ "version": "0.2.15",
4
4
  "description": "城市大数据平台公共头部及尾部",
5
5
  "main": "src/pages/index.jsx",
6
6
  "scripts": {
@@ -151,7 +151,7 @@ const ModuleMenu = ({ sysName, stash }) => {
151
151
  // 跳转首页
152
152
  const toHomePage = (index) => {
153
153
  if (index === 0) {
154
- window.location.href = '/#/index';
154
+ window.location.href = !stash ? '/#/index' : '/dataadmin/#/index';
155
155
  }
156
156
  };
157
157
  const getNewMenuList = (menuGet) => {
@@ -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