提交 9024a985 authored 作者: lihuihui's avatar lihuihui

修改分页

上级 014b885c
...@@ -21,14 +21,15 @@ ...@@ -21,14 +21,15 @@
</li> </li>
</template> </template>
</ul> </ul>
<div class="pages-box"> <!-- <div class="pages-box">
<el-pagination <el-pagination
layout="prev, pager, next" layout="prev, pager, next"
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
page-size=10 page-size="10"
:total="pages.total"> :total="pages.total"
>
</el-pagination> </el-pagination>
</div> </div> -->
</div> </div>
</div> </div>
</template> </template>
...@@ -39,7 +40,8 @@ export default { ...@@ -39,7 +40,8 @@ export default {
components: { tab, appLink }, components: { tab, appLink },
data() { data() {
return { return {
listData: [] listData: [],
pages: {}
} }
}, },
async fetch() { async fetch() {
...@@ -52,6 +54,7 @@ export default { ...@@ -52,6 +54,7 @@ export default {
}) })
}, },
methods: { methods: {
handleCurrentChange() {},
formatDate(value) { formatDate(value) {
const date = new Date(value * 1000) const date = new Date(value * 1000)
console.log(date.getMonth()) console.log(date.getMonth())
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论