peng.peng 1 year ago
parent
commit
194725b88d
  1. 7
      super-screen/client/src/sections/water-prevention/components/right-bottom.js

7
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 => <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');
}

Loading…
Cancel
Save