🐛 修复因返回空值到前端导致路由树无法正确加载的BUG
This commit is contained in:
parent
3fbc6780a0
commit
2f736e521c
@ -47,6 +47,10 @@ func GetUserMenus(userId string) (records []menu.Item, err error) {
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
if len(menus) == 0 {
|
||||
records = make([]menu.Item, 0)
|
||||
return
|
||||
}
|
||||
|
||||
// 处理出菜单Id对应的角色代码,然后去重
|
||||
var items []menuRecordItem
|
||||
|
Loading…
Reference in New Issue
Block a user