Эх сурвалжийг харах

fix:查看用户权限,模块为空报错处理

cxmo 1 жил өмнө
parent
commit
c83002298a

+ 6 - 4
src/views/system_manage/departManage.vue

@@ -722,11 +722,13 @@ export default {
 					console.log(Bol)
 					if(Bol) {
 						res.Data.List.length&&res.Data.List.forEach(item => {
-							let obj = {
-								checkAll:item.CheckList.length===item.Child.length?true:false,
-								...item,
+							if(item.Child){
+								let obj = {
+									checkAll:item.CheckList.length===item.Child.length?true:false,
+									...item,
+								}
+								list.push(obj)
 							}
-							list.push(obj)
 						})
 					}
 					this.authList = list;