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