修改了menu的查询次数 增强了菜单查询时的性能
This commit is contained in:
@@ -266,7 +266,7 @@ export default {
|
||||
},
|
||||
setAuthorityOptions(AuthorityData,optionsData,disabled){
|
||||
AuthorityData&&AuthorityData.map(item=>{
|
||||
if(item.children.length){
|
||||
if(item.children&&item.children.length){
|
||||
const option = {
|
||||
authorityId:item.authorityId,
|
||||
authorityName:item.authorityName,
|
||||
|
||||
@@ -78,7 +78,7 @@ export default {
|
||||
obj.authorityId = item.authorityId
|
||||
obj.authorityName = item.authorityName
|
||||
this.authoritys.push(obj)
|
||||
if(item.children.length){
|
||||
if(item.children&&item.children.length){
|
||||
this.roundAuthority(item.children)
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user