diff --git a/src/views/classMessage/classMessage/components/user.vue b/src/views/classMessage/classMessage/components/user.vue index a9d655d..ac90c53 100644 --- a/src/views/classMessage/classMessage/components/user.vue +++ b/src/views/classMessage/classMessage/components/user.vue @@ -134,7 +134,7 @@ export default { }) }, getShowPicture(row) { - if (row.PHOTO && row.PHOTO != '' ) { + if (row.PHOTO && row.PHOTO !== '' && (row.PHOTO.indexOf('.jpg') >= 0 || row.PHOTO.indexOf('.png') >= 0 || row.PHOTO.indexOf('.jpeg') >= 0)) { return true } },