Skip to content

Commit

Permalink
fix: 📝 修复路由文件缺失导致报错的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
viarotel committed Aug 9, 2023
1 parent 6fc2363 commit 4d51094
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@
"sass": "^1.63.4",
"unocss": "^0.54.2",
"unocss-applet": "^0.5.3",
"unplugin-uni-router": "^1.1.6",
"vite": "4.1.4",
"vite-plugin-eslint": "^1.8.1"
}
Expand Down
2 changes: 1 addition & 1 deletion src/pages.json
Original file line number Diff line number Diff line change
Expand Up @@ -146,4 +146,4 @@
}
]
}
}
}
3 changes: 1 addition & 2 deletions src/store/menu/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { groupBy } from 'lodash-es'
import { list2Tree, tree2List } from '@/utils/treeSimple'
import { sortTreeByField } from '@/utils/tree'
import { getUserMenus } from '@/api/user/index'
import businessRoutes from '@/router/business.js'

export async function getRemoteMenu(params) {
let data = []
Expand Down Expand Up @@ -47,7 +46,7 @@ export function transformerMenu(data,
2: permissionList = [],
} = groupBy(data, menuType)

const rawRoutes = businessRoutes?.children || []
const rawRoutes = []
const mapRoutes = rawRoutes.reduce((obj, item) => {
obj[item.path] = item
return obj
Expand Down

0 comments on commit 4d51094

Please sign in to comment.