feat : page upload
This commit is contained in:
parent
22f5eced3c
commit
1476216d25
@ -5,7 +5,7 @@ const props = defineProps({ currentPage: Number, totalPage: Number })
|
|||||||
const emit = defineEmits(['pageChange'])
|
const emit = defineEmits(['pageChange'])
|
||||||
|
|
||||||
// const navigationSize = parseInt(import.meta.env.VITE_ARTICLE_NAVIGATION_SIZE)
|
// const navigationSize = parseInt(import.meta.env.VITE_ARTICLE_NAVIGATION_SIZE)
|
||||||
const navigationSize = 10
|
const navigationSize = 5
|
||||||
|
|
||||||
const startPage = computed(() => {
|
const startPage = computed(() => {
|
||||||
return parseInt((props.currentPage - 1) / navigationSize) * navigationSize + 1
|
return parseInt((props.currentPage - 1) / navigationSize) * navigationSize + 1
|
||||||
|
Loading…
Reference in New Issue
Block a user