diff --git a/super-screen/client/src/sections/water-prevention/components/right-bottom.js b/super-screen/client/src/sections/water-prevention/components/right-bottom.js index 3c15d0b..2b5a9d0 100644 --- a/super-screen/client/src/sections/water-prevention/components/right-bottom.js +++ b/super-screen/client/src/sections/water-prevention/components/right-bottom.js @@ -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 => )} @@ -58,4 +58,9 @@ function DataTop5(props) { export default DataTop5; +function recUrlToLiveUrl(url) { + if (!url) return undefined; + return url.replace('.rec', '.live'); +} +