场景语音训练调整

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() { mounted() {
this.closeEvent(); this.closeEvent();
}, },
beforeDestroy() {
window.removeEventListener('click', this.doClose, false);
},
methods: { methods: {
closeEvent() { closeEvent() {
const self = this; window.addEventListener('click', this.doClose, false);
window.onclick = function (e) {
self.doClose();
};
}, },
doShow() { doShow() {
this.closeEvent(); this.closeEvent();