场景语音训练调整
This commit is contained in:
parent
78c8b39edb
commit
0b78df8c9c
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user