Browse Source

提交一下

1
mo 3 years ago
parent
commit
0a74f97f7f
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/views/setQuestions/components/answerList.vue

+ 3 - 3
src/views/setQuestions/components/answerList.vue

@@ -63,7 +63,7 @@
           :accept="
           :accept="
             questionList[currentIndex - 1]['type'] == 'image'
             questionList[currentIndex - 1]['type'] == 'image'
               ? '.jpg, .jpeg, .png'
               ? '.jpg, .jpeg, .png'
-              : '.XLSX,.XLS,.DOCX,.PDF,.TXT'
+              : '.XLSX,.XLS,.DOCX,.PDF,.TXT,PSD,EPS'
           "
           "
           :before-upload="
           :before-upload="
             (flie) => {
             (flie) => {
@@ -96,7 +96,7 @@
             只能上传JPG、PNG、JPEG、GIF文件,且不超过5MB
             只能上传JPG、PNG、JPEG、GIF文件,且不超过5MB
           </div>
           </div>
           <div slot="tip" v-else class="el-upload__tip">
           <div slot="tip" v-else class="el-upload__tip">
-            只能上传XLSX、XLS、DOCX、PDF、TXT文件,且不超过5MB
+            只能上传XLSX、XLS、DOCX、PDF、TXT、PSD、EPS文件,且不超过5MB
           </div>
           </div>
         </el-upload>
         </el-upload>
       </el-card>
       </el-card>
@@ -343,7 +343,7 @@ export default {
       // const isJPG = file.type === 'image/jpeg';
       // const isJPG = file.type === 'image/jpeg';
       const isLt2M = file.size / 1024 / 1024 < 5;
       const isLt2M = file.size / 1024 / 1024 < 5;
       const imgType = ["JPG", "PNG", "JPEG", "GIF"];
       const imgType = ["JPG", "PNG", "JPEG", "GIF"];
-      const testType = ["XLSX", "XLS", "DOCX", "PDF", "TXT"];
+        const testType = ["XLSX", "XLS", "DOCX", "PDF", "TXT","PSD","EPS"];
       const fileExtension = file.name.split(".").pop().toUpperCase();
       const fileExtension = file.name.split(".").pop().toUpperCase();
       console.log(
       console.log(
         type,
         type,