提交 665e1bc5 作者: 龚洪江

修复:服务新增格式提示问题

上级 c218e8e2
......@@ -50,7 +50,7 @@ export const Uploader: React.FC<PropsType> = (props) => {
const isType = fileType?.includes(res.type);
const isSize = res.size / 1024 / 1024 < (fileSize || 2);
if (!isType) {
message.error('请上传正确的格式!').then();
message.error(`请上传${fileType.join('、')}格式的文件!`).then();
return isType;
}
if (!isSize) {
......
......@@ -52,7 +52,15 @@ const ServiceDetail = () => {
)}
</Form.Item>
<Form.Item label='视频'>
{serviceDetail?.video ? <video src={serviceDetail?.video} /> : '暂无'}
{serviceDetail?.video ? (
<video
src={serviceDetail?.video}
controls
style={{ width: '200px', height: '200px' }}
/>
) : (
'暂无'
)}
</Form.Item>
</Form>
</div>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论