|
|
<template>
|
|
|
<LayoutApp :show-back="false" :hideHeader="hideHeader" :no-safe-area="true">
|
|
|
<waterfall :listData="listData"></waterfall>
|
|
|
<waterfall :listData="articleList"></waterfall>
|
|
|
</LayoutApp>
|
|
|
</template>
|
|
|
|
...
|
...
|
@@ -9,7 +9,7 @@ import LayoutApp from '../../components/layout/layout-app'; |
|
|
import {createNamespacedHelpers} from 'vuex';
|
|
|
import waterfall from './components/waterfall';
|
|
|
|
|
|
const {mapActions, mapState} = createNamespacedHelpers('article/list');
|
|
|
const {mapActions, mapState} = createNamespacedHelpers('article/articleList');
|
|
|
|
|
|
export default {
|
|
|
name: 'article.vue',
|
...
|
...
|
@@ -30,10 +30,13 @@ export default { |
|
|
|
|
|
},
|
|
|
computed: {
|
|
|
|
|
|
...mapState(['articleList'])
|
|
|
},
|
|
|
asyncData({store, router}) {
|
|
|
return store.dispatch('article/articleList/fetchArticleList', {productSkn: 10000100});
|
|
|
},
|
|
|
methods: {
|
|
|
|
|
|
...mapActions(['fetchArticleList'])
|
|
|
},
|
|
|
|
|
|
};
|
...
|
...
|
|