liusheng
2026-11-03 d70e6135d044a2104a42ef1163c31f8efd627d96
src/components/Pagination/index.vue
@@ -18,6 +18,7 @@
</template>
<script>
// 待定
import { scrollTo } from '@/utils/scroll-to'
export default {
@@ -78,7 +79,10 @@
    },
    pageSize: {
      get() {
        return this.limit
        // limit 可能被“导出”等操作临时置为 null,直接透传会让 el-pagination 算出
        // pageCount = total / 0 = Infinity,页码里就出现 “infinity”。这里兜底成 10
        const size = Number(this.limit)
        return size > 0 ? size : 10
      },
      set(val) {
        this.$emit('update:limit', val)