|
@@ -211,7 +211,9 @@ export default {
|
|
|
// }
|
|
|
// }
|
|
|
//获取了所有栏目
|
|
|
+ console.log(modules);
|
|
|
let res = await this.completeAllModules(modules);
|
|
|
+ console.log(res);
|
|
|
// for (const item of modules) {
|
|
|
// this.$set(this, `${item.category}List`, item);
|
|
|
// }
|
|
@@ -242,7 +244,9 @@ export default {
|
|
|
//合并请求模块
|
|
|
async completeAllModules(modules) {
|
|
|
let ids = modules.map(item => item.id);
|
|
|
+ console.log(ids);
|
|
|
let result = await this.getAllColumn(ids);
|
|
|
+ console.log(result);
|
|
|
// result = _.flattenDeep(result);
|
|
|
if (result.length > 0) {
|
|
|
//整理栏目
|