修改判斷
This commit is contained in:
parent
c4f5548618
commit
5098d77e90
@ -669,7 +669,7 @@
|
|||||||
}
|
}
|
||||||
else if (/\.(xls?x|doc?x|ptt?x|pdf|zip|rar|7zip|txt|odt|xml|rtf|ods|odp|pps?x)$/i.test(v.ori_file_name)) {
|
else if (/\.(xls?x|doc?x|ptt?x|pdf|zip|rar|7zip|txt|odt|xml|rtf|ods|odp|pps?x)$/i.test(v.ori_file_name)) {
|
||||||
icons = null
|
icons = null
|
||||||
if (extName == "xlsx" || extName == xls)
|
if (extName == "xlsx" || extName == "xls")
|
||||||
icons = "fas fa-file-excel";
|
icons = "fas fa-file-excel";
|
||||||
else if (extName == "pdf" || extName == "ods")
|
else if (extName == "pdf" || extName == "ods")
|
||||||
icons = "fas fa-file-pdf";
|
icons = "fas fa-file-pdf";
|
||||||
@ -780,7 +780,7 @@
|
|||||||
}
|
}
|
||||||
else if (/\.(xls?x|doc?x|ptt?x|pdf|zip|rar|7zip|txt|odt|xml|rtf|ods|odp|pps?x)$/i.test(v.ori_file_name)) {
|
else if (/\.(xls?x|doc?x|ptt?x|pdf|zip|rar|7zip|txt|odt|xml|rtf|ods|odp|pps?x)$/i.test(v.ori_file_name)) {
|
||||||
icons = null
|
icons = null
|
||||||
if (extName == "xlsx" || extName == xls)
|
if (extName == "xlsx" || extName == "xls")
|
||||||
icons = "fas fa-file-excel";
|
icons = "fas fa-file-excel";
|
||||||
else if (extName == "pdf" || extName == "ods")
|
else if (extName == "pdf" || extName == "ods")
|
||||||
icons = "fas fa-file-pdf";
|
icons = "fas fa-file-pdf";
|
||||||
@ -1375,7 +1375,7 @@
|
|||||||
}
|
}
|
||||||
else if (/\.(xls?x|doc?x|ptt?x|pdf|zip|rar|7zip|txt|odt|xml|rtf|ods|odp|pps?x)$/i.test(v.ori_file_name)) {
|
else if (/\.(xls?x|doc?x|ptt?x|pdf|zip|rar|7zip|txt|odt|xml|rtf|ods|odp|pps?x)$/i.test(v.ori_file_name)) {
|
||||||
icons = null
|
icons = null
|
||||||
if (extName == "xlsx" || extName == xls)
|
if (extName == "xlsx" || extName == "xls")
|
||||||
icons = "fas fa-file-excel";
|
icons = "fas fa-file-excel";
|
||||||
else if (extName == "pdf" || extName == "ods")
|
else if (extName == "pdf" || extName == "ods")
|
||||||
icons = "fas fa-file-pdf";
|
icons = "fas fa-file-pdf";
|
||||||
|
Loading…
Reference in New Issue
Block a user