Skip to content

Commit

Permalink
fix(ui): Jump to the first subscription by default
Browse files Browse the repository at this point in the history
  • Loading branch information
pycook committed May 20, 2024
1 parent 71b9522 commit e512033
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmdb-ui/src/modules/cmdb/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ const genCmdbRoutes = async () => {
if (lastTypeId && preference.type_ids.some(item => item === Number(lastTypeId))) {
routes.redirect = `/cmdb/instances/types/${lastTypeId}`
} else if (routes.children[2]?.children?.length > 0) {
routes.redirect = routes.children[2].children.find(item => !item.hidden)?.path
routes.redirect = routes.children[2].children.find(item => !item.hidden && !item.meta.disabled)?.path
} else {
routes.redirect = '/cmdb/dashboard'
}
Expand Down

0 comments on commit e512033

Please sign in to comment.