Commit 476f0bb6 authored by zhuyangbin's avatar zhuyangbin

heic 预览

parent 942cf0ed
......@@ -16,6 +16,9 @@ export default class uploadDetail extends React.Component {
let type = typeArr && typeArr[0] ? typeArr[0].replace('.', '') : '';
type = type.toLowerCase();
if (['png', 'gif', 'bmp', 'jpg', 'jpeg', 'heic'].includes(type)) {
if (type === 'heic') {
url += '?imageView2/2/w/700';
}
this.setState({ showDialog: true, type: 'image', url });
} else if (['doc', 'docx', 'document', 'xls', 'xlsx', 'ppt', 'pptx'].includes(type)) {
this.setState({ showDialog: true, type: 'office', url });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment