场景语音训练调整

This commit is contained in:
fan 2021-05-06 15:35:14 +08:00
parent 78c8b39edb
commit 0b78df8c9c

View File

@ -58,12 +58,12 @@ export default {
mounted() {
this.closeEvent();
},
beforeDestroy() {
window.removeEventListener('click', this.doClose, false);
},
methods: {
closeEvent() {
const self = this;
window.onclick = function (e) {
self.doClose();
};
window.addEventListener('click', this.doClose, false);
},
doShow() {
this.closeEvent();