module-menu-vue 0.0.71 → 0.0.72

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-vue",
3
- "version": "0.0.71",
3
+ "version": "0.0.72",
4
4
  "description": "城市大数据平台菜单--Vue版",
5
5
  "main": "/index.js",
6
6
  "scripts": {
@@ -30,14 +30,14 @@
30
30
  <script>
31
31
  import Axios from '../Util/axios.js'
32
32
  import { userMenuIcon } from './constant.js'
33
- import { getUserName } from './../Util/userInfo.js'
33
+ import { getUserName, getIsHaveSystemManagementPermissionFlag } from './../Util/userInfo.js'
34
34
  import { integrationLogout, getSysUrl } from './service.js'
35
35
  import {getMenuList} from '../Menu/service.js'
36
36
  export default {
37
37
  name: 'UserInfo',
38
38
  data () {
39
39
  return {
40
- isHaveSystemManagementPermission: sessionStorage.getItem('bigdata-isHaveSystemManagementPermission'),
40
+ isHaveSystemManagementPermission: getIsHaveSystemManagementPermissionFlag(),
41
41
  PersonalCenterSrc: userMenuIcon.PersonalCenterSrc,
42
42
  MessageCenterSrc: userMenuIcon.MessageCenterSrc,
43
43
  SystemManageSrc: userMenuIcon.SystemManageSrc,
@@ -85,4 +85,12 @@ export const getUserId = () => {
85
85
  }
86
86
  return '';
87
87
  }
88
- };
88
+ };
89
+
90
+ /**
91
+ * 获取是否拥有系统管理左侧菜单权限标识
92
+ * @returns
93
+ */
94
+ export const getIsHaveSystemManagementPermissionFlag = () => {
95
+ return getStore({ name: 'isHaveSystemManagementPermission' });
96
+ }