From 51e00ddb2d757c8f01af12ff9fe250789825fc71 Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Sun, 18 Sep 2022 17:58:39 +0200 Subject: fix: first default page is 0 --- store/models.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/store/models.js b/store/models.js index 5f5182b..e2a0e30 100644 --- a/store/models.js +++ b/store/models.js @@ -27,7 +27,7 @@ export const actions = { let res = { status: 0, data: null }; let api = this.$config.api; - page = page ? page : 1; + page = page ? page : 0; await fetch(`${api}/v1/models?page=${page}`, { headers: { -- cgit v1.2.3-18-g5258