fix: page 组件 pages 属性为单数时计算逻辑错误

This commit is contained in:
就眠儀式
2022-04-06 21:30:21 +08:00
parent 303256afa1
commit 0a3f5b94b2
3 changed files with 6 additions and 6 deletions

View File

@@ -43,7 +43,7 @@ const props = withDefaults(defineProps<LayPageProps>(), {
});
const limits = ref(props.limits);
const pages = Math.ceil(props.pages / 2);
const pages = Math.floor(props.pages / 2);
const inlimit = computed({
get() {