(lane:string)
| 96 | } |
| 97 | // 判断玩家位置 |
| 98 | export const querySummonerPosition = (lane:string):string => { |
| 99 | switch (lane) { |
| 100 | case 'MIDDLE' : return '中单'; |
| 101 | case 'JUNGLE' : return '打野'; |
| 102 | case 'BOTTOM' : return '下路'; |
| 103 | case 'UTILITY' : return '下路'; |
| 104 | case 'TOP' : return '上单'; |
| 105 | case 'NONE': return '未知' |
| 106 | default:return '未知' |
| 107 | } |
| 108 | } |
| 109 | // 获取位置序号, 方便排序 |
| 110 | export const getPosition = (selectedPosition:string) => { |
| 111 | switch (selectedPosition) { |