|
@@ -74,7 +74,7 @@ const onUpload = (file: File) => {
|
|
|
|
|
|
/* 上传文件 */
|
|
/* 上传文件 */
|
|
const uploadItem = (item: UploadItem) => {
|
|
const uploadItem = (item: UploadItem) => {
|
|
- if (!props.action && typeof props.uploadFunction === 'function') {
|
|
|
|
|
|
+ if (!props.action && typeof props.uploadFunction != 'function') {
|
|
console.log('请传入action路径或者uploadFunction上传方法')
|
|
console.log('请传入action路径或者uploadFunction上传方法')
|
|
return false
|
|
return false
|
|
}
|
|
}
|