guhongwei 4 years ago
parent
commit
372b99d551
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/views/index.vue

+ 4 - 0
src/views/index.vue

@@ -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) {
         //整理栏目