Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/libs/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export const getNewTagList = (list, newRoute) => {
* @param {*} route 路由列表
*/
const hasAccess = (access, route) => {
if (route.meta && route.meta.access) return hasOneOf(access, route.meta.access)
if (route.meta && route.meta.access && route.meta.access.length) return hasOneOf(access, route.meta.access)
else return true
}

Expand Down