소스 검색

附件查看增加JPEG格式的图片

caojunjie 1 년 전
부모
커밋
0d569f8254
1개의 변경된 파일6개의 추가작업 그리고 1개의 파일을 삭제
  1. 6 1
      src/components/cUpload/index.vue

+ 6 - 1
src/components/cUpload/index.vue

@@ -423,7 +423,12 @@ export default {
     checkFile(scope,type) {
       if (this.dataList[scope.$index].fUrl) {
         if(type === 0){
-          if (scope.row.fName.substring(scope.row.fName.lastIndexOf(".")) === '.jpg'||scope.row.fName.substring(scope.row.fName.lastIndexOf(".")) === '.png'||scope.row.fName.substring(scope.row.fName.lastIndexOf(".")) === '.JPG'||scope.row.fName.substring(scope.row.fName.lastIndexOf(".")) === '.PNG'){
+          if (scope.row.fName.substring(scope.row.fName.lastIndexOf(".")) === '.jpg'||
+            scope.row.fName.substring(scope.row.fName.lastIndexOf(".")) === '.png'||
+            scope.row.fName.substring(scope.row.fName.lastIndexOf(".")) === '.JPG'||
+            scope.row.fName.substring(scope.row.fName.lastIndexOf(".")) === '.PNG'||
+            scope.row.fName.substring(scope.row.fName.lastIndexOf(".")) === '.jpeg'||
+            scope.row.fName.substring(scope.row.fName.lastIndexOf(".")) === '.JPEG'){
             this.innerVisible = true
             this.url = this.dataList[scope.$index].fUrl
           }else {