瀏覽代碼

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

cxmo 1 年之前
父節點
當前提交
c83002298a
共有 1 個文件被更改,包括 6 次插入4 次删除
  1. 6 4
      src/views/system_manage/departManage.vue

+ 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;