diff options
author | Santo Cariotti <santo@dcariotti.me> | 2022-09-18 17:58:39 +0200 |
---|---|---|
committer | Santo Cariotti <santo@dcariotti.me> | 2022-09-18 17:58:39 +0200 |
commit | 51e00ddb2d757c8f01af12ff9fe250789825fc71 (patch) | |
tree | 2de6f7315bdeb3f6241f62d902ffcce5ddd95aea /store | |
parent | bfdae8ae625b69c4940dda37f1ef79dc92ce5f92 (diff) |
fix: first default page is 0
Diffstat (limited to 'store')
-rw-r--r-- | store/models.js | 2 |
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: { |