diff --git a/src/components/SearchGrade.vue b/src/components/SearchGrade.vue index a82e66c4f907eff7a6797ee0f24d5bd18d64b002..96eaaa5d540a41c1e2f19c38ca6dc1f26a070ba5 100644 --- a/src/components/SearchGrade.vue +++ b/src/components/SearchGrade.vue @@ -5,7 +5,7 @@ import * as echarts from 'echarts'; import { onMounted, reactive, onUnmounted } from 'vue'; const state = reactive({ loading: false, - searchValue: 'qq_38870145', + searchValue: '', firstChart: null, columns: [{ title: '文章名称', @@ -40,10 +40,15 @@ const state = reactive({ pageSize: 10, pageSizeOptions: ['10', '20', '30'], showTotal: (total, range) => { - return range[0] + '-' + range[1] + ' 共' + total + '条'; + return range[0] + '-' + range[1] + ' 共' + total + '篇博客'; }, + change:changePage } }) +function changePage(page,pageSize){ + state.pagination.current= page + state.pagination.pageSize= pageSize +} const getCsdnData = (uId) => { const url = 'https://yongma16.xyz/common-api/getCsdnGrade/' @@ -127,7 +132,7 @@ function initFirstData() { - 博客质量:${params.value}
- 博客建议:${findItem.message}
- 博客地址:${findItem.url}
- - 发文时间:${params.name}
+ - 发文时间:${params.name}
` }, },