Browse Source

视频增加 controls

dev
巴林闲侠 1 year ago
parent
commit
d07175c0fa
  1. 2
      web/client/src/sections/fillion/components/maintenanceTable.js
  2. 2
      web/client/src/sections/fillion/components/patrolTable.js

2
web/client/src/sections/fillion/components/maintenanceTable.js

@ -97,7 +97,7 @@ const DetailForm = (props) => {
{ {
data[obj.name] && data[obj.name] instanceof Array ? data[obj.name].map(videoUrl => { data[obj.name] && data[obj.name] instanceof Array ? data[obj.name].map(videoUrl => {
return <div style={{ width: '44%', margin: 6 }}> return <div style={{ width: '44%', margin: 6 }}>
<video src={qndmn + '/' + videoUrl} width={'100%'} style={{ marginBottom: 4 }} /> <video src={qndmn + '/' + videoUrl} width={'100%'} style={{ marginBottom: 4 }} controls />
</div> </div>
}) : '暂无视频' }) : '暂无视频'
} }

2
web/client/src/sections/fillion/components/patrolTable.js

@ -138,7 +138,7 @@ const DetailForm = (props) => {
{ {
data[obj.name] && data[obj.name] instanceof Array ? data[obj.name].map(videoUrl => { data[obj.name] && data[obj.name] instanceof Array ? data[obj.name].map(videoUrl => {
return <div style={{ width: '44%', margin: 6 }}> return <div style={{ width: '44%', margin: 6 }}>
<video width={'100%'} style={{ marginBottom: 4 }} > <video controls width={'100%'} style={{ marginBottom: 4 }} >
<source src={qndmn + '/' + videoUrl} type="video/mp4" /> <source src={qndmn + '/' + videoUrl} type="video/mp4" />
</video> </video>
</div> </div>

Loading…
Cancel
Save