[代码完善](v2.5): v2.5 beta 修复角色管理中分配菜单后子菜单丢失的问题
问题:角色管理中的分配菜单由于是懒加载的,导致保存分配的菜单时只保存了选择的父节点 修复:在保存前先将部分菜单加载出来 2.5 Beta 详情:https://www.ydyno.com/archives/1225.html
This commit is contained in:
@@ -221,8 +221,8 @@ export default {
|
||||
}, 100)
|
||||
},
|
||||
getSupDepts(id) {
|
||||
crudMenu.getSuperior(id).then(res => {
|
||||
const children = res.content.map(function(obj) {
|
||||
crudMenu.getMenuSuperior(id).then(res => {
|
||||
const children = res.map(function(obj) {
|
||||
if (!obj.leaf && !obj.children) {
|
||||
obj.children = null
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user