article.vue 915 Bytes
<template>
  <LayoutApp :show-back="false" :hideHeader="hideHeader" :no-safe-area="true">
    <waterfall :listData="articleList"></waterfall>
  </LayoutApp>
</template>

<script>
import LayoutApp from '../../components/layout/layout-app';
import {createNamespacedHelpers} from 'vuex';
import waterfall from './components/waterfall';

const {mapActions, mapState} = createNamespacedHelpers('article/articleList');

export default {
  name: 'article.vue',
  components: {
    LayoutApp,
    waterfall
  },
  props: ['hideHeader'],
  data() {
    return {
      listData: []
    };
  },
  mounted() {

  },
  activated() {

  },
  computed: {
    ...mapState(['articleList'])
  },
  asyncData({store, router}) {
    return store.dispatch('article/articleList/fetchArticleList', {productSkn: 10000100});
  },
  methods: {
    ...mapActions(['fetchArticleList'])
  },

};
</script>

<style lang="scss" scoped>

</style>