feat: gist 单页数量改为 100

This commit is contained in:
xream 2025-01-09 09:14:36 +08:00
parent e6f6d51608
commit 128353a7f3

View File

@ -114,15 +114,17 @@ export default class Gist {
return; return;
}); });
} else { } else {
return this.http.get('/gists').then((response) => { return this.http
const gists = JSON.parse(response.body); .get('/gists?per_page=100&page=1')
for (let g of gists) { .then((response) => {
if (g.description === this.key) { const gists = JSON.parse(response.body);
return g; for (let g of gists) {
if (g.description === this.key) {
return g;
}
} }
} return;
return; });
});
} }
} }