[Improvement] AddressEdit: add cancel-delete event (#1047)

This commit is contained in:
neverland
2018-05-12 11:02:44 +08:00
committed by GitHub
parent df2bc56aff
commit 9d8b615392
3 changed files with 10 additions and 3 deletions
+2
View File
@@ -277,6 +277,8 @@ export default create({
message: this.$t('confirmDelete')
}).then(() => {
this.$emit('delete', this.data);
}).catch(() => {
this.$emit('cancel-delete', this.data);
});
},