Browse Source

修改bug

chenrui 6 tháng trước cách đây
mục cha
commit
47f7513786
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/components/UploadFile/index.vue

+ 1 - 1
src/components/UploadFile/index.vue

@@ -266,7 +266,7 @@ export default {
         }
         return true
       }
-      const isType = file.name.indexOf(this.fileType) >= 0 && file.type != ''
+      const isType = file.type.indexOf(this.fileType) >= 0 && file.type != ''
       if (!isType) {
         if (tip != 0) {
           this.$message.error('请上传正确的格式!')