module-menu-vue 0.0.62 → 0.0.64

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.62",
3
+ "version": "0.0.64",
4
4
  "description": "城市大数据平台菜单--Vue版",
5
5
  "main": "/index.js",
6
6
  "scripts": {
@@ -101,10 +101,14 @@ export default {
101
101
  if (rsp.data.data) {
102
102
  const pathList = routesList.map(item => {
103
103
  if (item.path.indexOf('appSystem') !== -1) {
104
- const appSysMenuList = item.routes.map(obj => {
105
- return obj.path.indexOf('/') === -1 ? '/' + obj.path : obj.path
104
+ let appSysMenuList = []
105
+ let appSysNameList = []
106
+ item.routes.forEach(obj => {
107
+ appSysMenuList.push('/' + obj.path)
108
+ appSysNameList.push(obj.name)
106
109
  }) || []
107
110
  localStorage.setItem('appSysMenuList', JSON.stringify(appSysMenuList))
111
+ localStorage.setItem('appSysNameList', JSON.stringify(appSysNameList))
108
112
  }
109
113
  return {
110
114
  ...item,