Skip to content

Commit a8b5334

Browse files
authored
Merge pull request Vanthink-UED#75 from zaguini/master
Update vue-core-image-upload.vue
2 parents 18789b2 + 6193750 commit a8b5334

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/vue-core-image-upload.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@
151151
this.data.comprose = 100 - this.compress;
152152
return canvasHelper.crop(targetImage, this.data, (code) => {
153153
upload(code);
154+
this.__dispatch('imagechanged', code);
154155
})
155156
}
156157
upload();
@@ -166,6 +167,7 @@
166167
this.data.comprose = 100 - this.compress;
167168
return canvasHelper.resize(targetImage, this.data, (code) => {
168169
upload(code);
170+
this.__dispatch('imagechanged', code);
169171
})
170172
}
171173
upload();

0 commit comments

Comments
 (0)