From 328f48b0e56ee1b7050bee538af9f481788a4aac Mon Sep 17 00:00:00 2001 From: lihaozecq Date: Thu, 10 Jan 2019 01:03:57 +0800 Subject: [PATCH] fix pagination --- packages/@vuepress/plugin-pagination/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@vuepress/plugin-pagination/index.js b/packages/@vuepress/plugin-pagination/index.js index bdacd07503..80041b116c 100644 --- a/packages/@vuepress/plugin-pagination/index.js +++ b/packages/@vuepress/plugin-pagination/index.js @@ -5,7 +5,7 @@ function getIntervallers (max, interval) { const arr = [...Array(count)] return arr.map((v, index) => { const start = index * interval - const end = (index + 1) * interval - 1 + const end = (index + 1) * interval return [start, end > max ? max : end] }) }