Skip to content

Commit 759bd17

Browse files
committed
add success back img
1 parent b59fce5 commit 759bd17

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "rui-vue-image-crop-upload",
3-
"version": "2.5.15",
3+
"version": "2.5.16",
44
"description": "a vue plgin for image upload and crop(vue图片剪裁上传插件)",
55
"main": "upload-2.vue",
66
"scripts": {

upload-2.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,7 @@ export default {
865865
function(resData) {
866866
if (that.value) {
867867
that.loading = 2;
868-
that.$emit('crop-upload-success', resData, field, ki, that.off);
868+
that.$emit('crop-upload-success', resData, createImgUrl, field, ki, that.off);
869869
}
870870
},
871871
// 上传失败
@@ -874,7 +874,7 @@ export default {
874874
that.loading = 3;
875875
that.hasError = true;
876876
that.errorMsg = lang.fail;
877-
that.$emit('crop-upload-fail', sts, field, ki, that.off);
877+
that.$emit('crop-upload-fail', sts, createImgUrl, field, ki, that.off);
878878
}
879879
}
880880
);

0 commit comments

Comments
 (0)