feat: gist 单页数量改为 100

This commit is contained in:
xream
2025-01-09 09:14:36 +08:00
parent 607420bb0d
commit c4a682baba

View File

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