Commit 9a97e827 authored by miaojiale's avatar miaojiale

修改图片查看匹配

parent ba15eb5d
......@@ -210,7 +210,9 @@ export default {
this.uploadPrefix + `${_.bucket_name}/${_.prefix}-${_.uuid_name}`
}
try {
if (name.match(/\.(PNG|png|jpg|JPG|jpeg|JPEG)/)) {
if (
name.match(/\.(([Jj][Pp][Gg])|([Pp][Nn][Gg])|([Jj][Pp][Ee][Gg]))/)
) {
this.imgUrl = file.url || responseUrl
this.$refs.image.clickHandler()
} else {
......
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