|
@@ -71,10 +71,11 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
handleClose(done) {
|
|
|
- this.close();
|
|
|
- done();
|
|
|
+ this.close(()=>{
|
|
|
+ done();
|
|
|
+ });
|
|
|
},
|
|
|
- close() {
|
|
|
+ close(callback) {
|
|
|
let a = {
|
|
|
title: this.title,
|
|
|
detail: this.detail,
|
|
@@ -94,6 +95,7 @@ export default {
|
|
|
})
|
|
|
.catch(() => {
|
|
|
this.$emit("update:EnglishVoiceDialog", false);
|
|
|
+ callback ? callback() : '';
|
|
|
});
|
|
|
}
|
|
|
},
|
|
@@ -162,7 +164,7 @@ export default {
|
|
|
this.checkJson2 = JSON.parse(JSON.stringify(a));
|
|
|
this.title = a.title;
|
|
|
this.detail = a.detail;
|
|
|
- this.checkJson = a.array
|
|
|
+ this.checkJson = a.array ? a.array : []
|
|
|
this.checkType = -1
|
|
|
}
|
|
|
},
|