lrf402788946 5 éve
szülő
commit
2e92d8a00d
2 módosított fájl, 8 hozzáadás és 1 törlés
  1. 1 0
      src/store/column.js
  2. 7 1
      src/store/news.js

+ 1 - 0
src/store/column.js

@@ -20,6 +20,7 @@ export const actions = {
       return res;
     };
     let result = await axios.all(toGet());
+    //降维
     let arr = _.flattenDeep(_.flattenDeep(result).map(item => item.data));
     return arr;
   },

+ 7 - 1
src/store/news.js

@@ -27,11 +27,17 @@ export const actions = {
           data.news_type = `1`;
           data.parent_id = item.id;
         }
-        res.push(dispatch('getNews', { type: 'bugList', data }));
+        res.push(
+          dispatch('getNews', {
+            type: 'bugList',
+            data,
+          })
+        );
       }
       return res;
     };
     let result = await axios.all(toGet());
+    //降维
     let arr = _.flattenDeep(_.flattenDeep(result).map(item => item.data));
     return arr;
   },