File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ const STATUS_FILTERS = [
2828 { label : '通过' , value : 'accepted' } ,
2929 { label : '答案错误' , value : 'wrong_answer' } ,
3030 { label : '运行错误' , value : 'runtime_error' } ,
31- { label : '超时' , value : 'time_limit_exceeded ' } ,
31+ { label : '超时' , value : 'time_limit ' } ,
3232] ;
3333
3434const LANGUAGE_FILTERS = [
Original file line number Diff line number Diff line change @@ -60,8 +60,8 @@ const api = {
6060 getAdminStats : ( ) => request < import ( '../types' ) . AdminStats > ( '/problems/admin/stats' ) ,
6161 getTags : ( ) => request < { tags : { name : string ; count : number } [ ] } > ( '/problems/tags' ) ,
6262 getDaily : ( ) => request < { problem : import ( '../types' ) . Problem ; date : string } > ( '/problems/daily' ) ,
63- random : ( type ?: string ) => request < import ( '../types' ) . Problem > ( `/problems/random${ type ? `?type=${ type } ` : '' } ` ) ,
64- randomUnsolved : ( ) => request < import ( '../types' ) . Problem > ( '/problems/random-unsolved' ) ,
63+ random : ( type ?: string ) => request < { problem : import ( '../types' ) . Problem } > ( `/problems/random${ type ? `?type=${ type } ` : '' } ` ) . then ( r => r . problem ) ,
64+ randomUnsolved : ( ) => request < { problem : import ( '../types' ) . Problem } > ( '/problems/random-unsolved' ) . then ( r => r . problem ) ,
6565 } ,
6666
6767 submissions : {
You can’t perform that action at this time.
0 commit comments