luoxj il y a 5 ans
Parent
commit
9be4a1ee17
1 fichiers modifiés avec 5 ajouts et 1 suppressions
  1. 5 1
      src/main/webapp/WEB-INF/manager/cms/content/index.ftl

+ 5 - 1
src/main/webapp/WEB-INF/manager/cms/content/index.ftl

@@ -62,7 +62,11 @@
 						that.treeData = [];
 					} else {
 						that.emptyText = '';
-						that.treeData = ms.util.treeData(res.data.rows, 'id', 'categoryId', 'children');
+						// 过滤掉栏目类型为链接属性
+						that.treeData = res.data.rows.filter(function (item) {
+							 return item.categoryType =='2' || item.categoryType =='1'
+						})
+						that.treeData = ms.util.treeData(that.treeData, 'id', 'categoryId', 'children');
 						that.treeData = [{
 							id: 0,
 							categoryTitle: '全部',