|
|
@ -28,7 +28,7 @@ function DataTop5(props) { |
|
|
|
// key={Math.random()}
|
|
|
|
defaultValue={videoList[0]?.url} |
|
|
|
// value={showVideoList}
|
|
|
|
onChange={(value) => { setShowVideoList(value); }} |
|
|
|
onChange={(value) => { setShowVideoList(recUrlToLiveUrl(value)); }} |
|
|
|
> |
|
|
|
{videoList.map(s => <Option key={s.url} value={s.url}>{s.name}</Option>)} |
|
|
|
</Select> |
|
|
@ -58,4 +58,9 @@ function DataTop5(props) { |
|
|
|
|
|
|
|
export default DataTop5; |
|
|
|
|
|
|
|
function recUrlToLiveUrl(url) { |
|
|
|
if (!url) return undefined; |
|
|
|
return url.replace('.rec', '.live'); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|