module-menu-vue 0.0.57 → 0.0.58

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.57",
3
+ "version": "0.0.58",
4
4
  "description": "城市大数据平台菜单--Vue版",
5
5
  "main": "/index.js",
6
6
  "scripts": {
@@ -95,15 +95,19 @@ export default {
95
95
  // 一体化
96
96
  if (this.stash === "integration") {
97
97
  const rsp = await getMenuList()
98
- if (rsp.data.data) {
99
- const pathList = rsp.data.data.map(item => {
100
- return {
101
- ...item,
102
- path: item.path.indexOf('/') === -1 ? '/' + item.path : item.path
103
- }
104
- })
105
- this.sessionMenu = [...pathList]
106
- this.getNewMenuList();
98
+ const rspData = rsp.data.data
99
+ if (rspData && rspData.length > 0) {
100
+ const routesList = rspData[0].routes
101
+ if (rsp.data.data) {
102
+ const pathList = routesList.map(item => {
103
+ return {
104
+ ...item,
105
+ path: item.path.indexOf('/') === -1 ? '/' + item.path : item.path
106
+ }
107
+ })
108
+ this.sessionMenu = [...pathList]
109
+ this.getNewMenuList();
110
+ }
107
111
  }
108
112
  } else {
109
113
  // 轻量级
@@ -40,9 +40,9 @@
40
40
  color: #4091f7;
41
41
  }
42
42
  .childMenu {
43
- width: 30%;
43
+ width: 27%;
44
44
  display: inline-block;
45
- font-size: 13px;
45
+ font-size: 14px;
46
46
  }
47
47
  .middle {
48
48
  vertical-align: middle;
@@ -1,6 +1,6 @@
1
1
  import request from 'axios'
2
2
  export const getMenuList = () => {
3
- return request(`/admin-api/system/user/getUserMenusList`, {
3
+ return request(`/admin-api/system/user/get-user-menu-List?menuName=数据平台`, {
4
4
  method: 'get'
5
5
  })
6
6
  }
@@ -1,7 +1,7 @@
1
1
  import axios from 'axios';
2
2
  import getStore from './userInfo';
3
3
  import { checkToken } from './permessionUtils';
4
- let tokenValue = '05774990fd19482ab86e90a46b88abf0';
4
+ let tokenValue = '39e212bf726b439180dadb352a57a8c9';
5
5
  axios.interceptors.response.use(
6
6
  (response) => {
7
7
  if (response.status === 200) {