Skip to content

Commit fa34a99

Browse files
committed
update new version and fixed same image bug
1 parent af3ebce commit fa34a99

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"homepage": "https://github.com/Vanthink-UED/vue.core.image.upload",
1818
"private": true,
1919
"dependencies": {
20-
"vue": "^1.0.26"
20+
"vue": "^2.0.6"
2121
},
2222
"devDependencies": {
2323
"babel": "^6.5.2",

index.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-core-image-upload",
3-
"version": "2.0.10",
3+
"version": "2.0.13",
44
"description": "a vue plgin for image upload and crop",
55
"main": "index.js",
66
"dependencies": {

src/vue.core.image.upload.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -494,14 +494,15 @@
494494
}
495495
496496
}
497-
xhr('POST',this.url,this.headers,data,function(res) {
497+
xhr('POST',this.url, this.headers, data,function(res) {
498498
if(typeof callback === 'function') {
499499
callback();
500500
}
501501
self.uploading = false;
502502
if(self.crop) {
503503
self.hasImage = false;
504-
}
504+
}
505+
document.querySelector("#g-core-upload-input-" + self.formID).value = '';
505506
self.__dispatch('imageuploaded',res);
506507
});
507508
},

0 commit comments

Comments
 (0)