| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <template>
- <div class="container news-container">
- <left></left>
- <right></right>
- </div>
- </template>
- <script>
- import { Left, Right } from '~components/news'
- export default {
- layout: 'main',
- // data () {
- // return {
- // pageSize: 10,
- // nowPage: 1
- // }
- // },
- // fetch ({ store }) {
- // return Promise.all([
- // store.dispatch('newsData/loadAllNews', { page: this.nowPage, pageSize: this.pageSize }),
- // store.dispatch('newsData/loadHotNews')
- // ])
- // },
- components: {
- Left,
- Right
- }
- // methods: {
- // listenChild: function (nPage) {
- // this.nowPage = nPage
- // this.$store.dispatch('newsData/loadAllNews', { page: this.nowPage, pageSize: this.pageSize })
- // }
- // }
- }
- </script>
- <style scoped>
- body{
- font-size: 14px!important;
- }
- .news-container{
- margin-top: 15px;
- }
- </style>
|