|
@@ -258,17 +258,18 @@ export default {
|
|
|
modules = modules.map(item => {
|
|
|
let children = result.filter(fil => fil.parent_id === item.id);
|
|
|
item.children = children;
|
|
|
- for (const sc of item.children) {
|
|
|
- let schildren = _.get(sc, `children`, []);
|
|
|
- sc.children = _.sortBy(schildren, i => {
|
|
|
- return new Date(_.get(i, `meta.createdA`)).getTime();
|
|
|
- });
|
|
|
- sc.children = sc.children.filter(f => f.is_use === '0');
|
|
|
- }
|
|
|
+ // for (const sc of item.children) {
|
|
|
+ // let schildren = _.get(sc, `children`, []);
|
|
|
+ // sc.children = _.reverse(
|
|
|
+ // _.sortBy(schildren, i => {
|
|
|
+ // return new Date(_.get(i, `publish_time`)).getTime();
|
|
|
+ // })
|
|
|
+ // );
|
|
|
+ // sc.children = sc.children.filter(f => f.is_use === '0');
|
|
|
+ // }
|
|
|
// if (item.is_use === '0') {
|
|
|
this.$set(this, `${item.category}List`, item);
|
|
|
// }
|
|
|
-
|
|
|
return item;
|
|
|
});
|
|
|
}
|