|
|
|
@ -122,6 +122,8 @@ function doCreateUploader (options) {
|
|
|
|
|
},
|
|
|
|
|
// 文件上传失败
|
|
|
|
|
onUploadFailed: function (uploadInfo, code, message) {
|
|
|
|
|
options.onUploadFailed && options.onUploadFailed(uploadInfo)
|
|
|
|
|
|
|
|
|
|
console.log("onUploadFailed: file:" + uploadInfo.file.name + ",code:" + code + ", message:" + message)
|
|
|
|
|
$('#status').text('文件上传失败!')
|
|
|
|
|
},
|
|
|
|
@ -173,7 +175,6 @@ function doCreateUploader (options) {
|
|
|
|
|
export function getUploader (_login, options) {
|
|
|
|
|
_login && (login = _login)
|
|
|
|
|
if (!uploader || options.create == true) {
|
|
|
|
|
uploader = createUploader(options)
|
|
|
|
|
createUploader(options)
|
|
|
|
|
}
|
|
|
|
|
return uploader;
|
|
|
|
|
}
|