@@ -219,7 +219,7 @@ export default defineComponent({
219219 this .searchRepos ();
220220 },
221221
222- changePage(page : number ) {
222+ async changePage(page : number ) {
223223 if (this .isLoading ) return ;
224224
225225 this .page = page ;
@@ -231,7 +231,7 @@ export default defineComponent({
231231 }
232232 this .repos = [];
233233 this .counts [` ${this .reposFilter }:${this .archivedFilter }:${this .privateFilter } ` ] = 0 ;
234- this .searchRepos ();
234+ await this .searchRepos ();
235235 },
236236
237237 async searchRepos() {
@@ -301,7 +301,7 @@ export default defineComponent({
301301 return commitStatus [status ].color ;
302302 },
303303
304- reposFilterKeyControl(e : KeyboardEvent ) {
304+ async reposFilterKeyControl(e : KeyboardEvent ) {
305305 switch (e .key ) {
306306 case ' Enter' :
307307 document .querySelector <HTMLAnchorElement >(' .repo-owner-name-list li.active a' )?.click ();
@@ -310,7 +310,7 @@ export default defineComponent({
310310 if (this .activeIndex > 0 ) {
311311 this .activeIndex -- ;
312312 } else if (this .page > 1 ) {
313- this .changePage (this .page - 1 );
313+ await this .changePage (this .page - 1 );
314314 this .activeIndex = this .searchLimit - 1 ;
315315 }
316316 break ;
@@ -319,17 +319,17 @@ export default defineComponent({
319319 this .activeIndex ++ ;
320320 } else if (this .page < this .finalPage ) {
321321 this .activeIndex = 0 ;
322- this .changePage (this .page + 1 );
322+ await this .changePage (this .page + 1 );
323323 }
324324 break ;
325325 case ' ArrowRight' :
326326 if (this .page < this .finalPage ) {
327- this .changePage (this .page + 1 );
327+ await this .changePage (this .page + 1 );
328328 }
329329 break ;
330330 case ' ArrowLeft' :
331331 if (this .page > 1 ) {
332- this .changePage (this .page - 1 );
332+ await this .changePage (this .page - 1 );
333333 }
334334 break ;
335335 }
0 commit comments