@@ -219,7 +219,7 @@ export default defineComponent({
219
219
this .searchRepos ();
220
220
},
221
221
222
- changePage(page : number ) {
222
+ async changePage(page : number ) {
223
223
if (this .isLoading ) return ;
224
224
225
225
this .page = page ;
@@ -231,7 +231,7 @@ export default defineComponent({
231
231
}
232
232
this .repos = [];
233
233
this .counts [` ${this .reposFilter }:${this .archivedFilter }:${this .privateFilter } ` ] = 0 ;
234
- this .searchRepos ();
234
+ await this .searchRepos ();
235
235
},
236
236
237
237
async searchRepos() {
@@ -301,7 +301,7 @@ export default defineComponent({
301
301
return commitStatus [status ].color ;
302
302
},
303
303
304
- reposFilterKeyControl(e : KeyboardEvent ) {
304
+ async reposFilterKeyControl(e : KeyboardEvent ) {
305
305
switch (e .key ) {
306
306
case ' Enter' :
307
307
document .querySelector <HTMLAnchorElement >(' .repo-owner-name-list li.active a' )?.click ();
@@ -310,7 +310,7 @@ export default defineComponent({
310
310
if (this .activeIndex > 0 ) {
311
311
this .activeIndex -- ;
312
312
} else if (this .page > 1 ) {
313
- this .changePage (this .page - 1 );
313
+ await this .changePage (this .page - 1 );
314
314
this .activeIndex = this .searchLimit - 1 ;
315
315
}
316
316
break ;
@@ -319,17 +319,17 @@ export default defineComponent({
319
319
this .activeIndex ++ ;
320
320
} else if (this .page < this .finalPage ) {
321
321
this .activeIndex = 0 ;
322
- this .changePage (this .page + 1 );
322
+ await this .changePage (this .page + 1 );
323
323
}
324
324
break ;
325
325
case ' ArrowRight' :
326
326
if (this .page < this .finalPage ) {
327
- this .changePage (this .page + 1 );
327
+ await this .changePage (this .page + 1 );
328
328
}
329
329
break ;
330
330
case ' ArrowLeft' :
331
331
if (this .page > 1 ) {
332
- this .changePage (this .page - 1 );
332
+ await this .changePage (this .page - 1 );
333
333
}
334
334
break ;
335
335
}
0 commit comments