From 128353a7f3b4e46cd1b9339b19214a11f188e6aa Mon Sep 17 00:00:00 2001 From: xream Date: Thu, 9 Jan 2025 09:14:36 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20gist=20=E5=8D=95=E9=A1=B5=E6=95=B0?= =?UTF-8?q?=E9=87=8F=E6=94=B9=E4=B8=BA=20100?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/src/utils/gist.js | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/backend/src/utils/gist.js b/backend/src/utils/gist.js index fd12a07..a6736d7 100644 --- a/backend/src/utils/gist.js +++ b/backend/src/utils/gist.js @@ -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; + }); } }