Commit f31cd69d authored by 高滢's avatar 高滢

feat(上传文件组件): 修改

parent a1b6b4a0
...@@ -6,7 +6,6 @@ ...@@ -6,7 +6,6 @@
:action="uploadFileUrl" :action="uploadFileUrl"
v-if="!disabled" v-if="!disabled"
:before-upload="handleBeforeUpload" :before-upload="handleBeforeUpload"
:on-change="handleFileChange"
:file-list="fileList" :file-list="fileList"
:limit="limit" :limit="limit"
:on-error="handleUploadError" :on-error="handleUploadError"
...@@ -136,9 +135,7 @@ watch( ...@@ -136,9 +135,7 @@ watch(
}, },
{ deep: true, immediate: true }, { deep: true, immediate: true },
) )
// function handleFileChange(file){
//
// }
// 上传前校检格式和大小 // 上传前校检格式和大小
function handleBeforeUpload(file) { function handleBeforeUpload(file) {
// 校检文件类型 // 校检文件类型
......
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