Commit fe673cae authored by 前端-许佳敏's avatar 前端-许佳敏

fix: 兼容素材库更多后缀格式

parent 763c75c5
......@@ -201,12 +201,12 @@ const Materialmanagement = () => {
<img src={Zip} alt="" />
)
}
if (flieCode == 'docx') {
if (flieCode == 'docx' || flieCode == 'doc') {
return (
<img src={Doc} alt="" />
)
}
if (flieCode == 'xlsx') {
if (flieCode == 'xlsx' || flieCode == 'xls') {
return (
<img src={Xlsx} alt="" />
)
......@@ -217,12 +217,12 @@ const Materialmanagement = () => {
// <img className={styles.Img} src={Video} alt="" />
)
}
if (flieCode == 'pptx') {
if (flieCode == 'pptx' || flieCode == 'ppt') {
return (
<img src={PPT} alt="" />
)
}
if (flieCode == 'pdf') {
if (flieCode == 'pdf' || flieCode == 'pdfx') {
return (
<img src={PDF} alt="" />
)
......
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