summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2022-09-18 17:58:39 +0200
committerSanto Cariotti <santo@dcariotti.me>2022-09-18 17:58:39 +0200
commit51e00ddb2d757c8f01af12ff9fe250789825fc71 (patch)
tree2de6f7315bdeb3f6241f62d902ffcce5ddd95aea
parentbfdae8ae625b69c4940dda37f1ef79dc92ce5f92 (diff)
fix: first default page is 0
-rw-r--r--store/models.js2
1 files changed, 1 insertions, 1 deletions
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: {