feat : page upload

This commit is contained in:
leejunghyeok 2024-05-20 17:06:51 +09:00
parent 22f5eced3c
commit 1476216d25

View File

@ -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