|
@@ -108,7 +108,6 @@
|
|
|
</div>
|
|
|
</a-spin>
|
|
|
<div
|
|
|
- v-if="!hasLimit"
|
|
|
class="tw-flex tw-justify-between tw-place-content-center tw-mt-2 pager-container"
|
|
|
>
|
|
|
<div class="tw-font-bold" style="line-height: 30px">
|
|
@@ -159,7 +158,13 @@ const remarkCount = computed(() => {
|
|
|
return store.setting?.remarkCount;
|
|
|
});
|
|
|
const limitPageSize = computed(() => {
|
|
|
- return typeof remarkCount.value == "number" ? remarkCount.value : 20;
|
|
|
+ return typeof remarkCount.value == "number"
|
|
|
+ ? remarkCount.value <= 20
|
|
|
+ ? remarkCount.value
|
|
|
+ : currentPage * 20 > remarkCount.value
|
|
|
+ ? remarkCount.value % 20
|
|
|
+ : 20
|
|
|
+ : 20;
|
|
|
});
|
|
|
const hasLimit = computed(() => {
|
|
|
console.log("remarkCount.value:", remarkCount.value);
|