Skip to content

Commit ddcbf88

Browse files
committed
auto push
1 parent d4648c0 commit ddcbf88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/views/Home.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const route = useRoute()
77
const articleFilter = reactive<ArticlesType[]>([])
88
const page = ref(0)
99
function updateArticle() {
10-
page.value = (route.query.page || 1) - 1
10+
page.value = (Number(route.query.page) || 1) - 1
1111
articleFilter.length = 0
1212
let start = page.value * 10;
1313
let end = Math.min(start + 9, articles.length - 1);

0 commit comments

Comments
 (0)