fix: page 组件 pages 属性为单数时计算逻辑错误
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user