Vue lifecycle changes
destroyed -> unmounted, beforeDestroy -> beforeUnmount
This commit is contained in:
parent
ae312db784
commit
2c5b386af9
18 changed files with 20 additions and 20 deletions
|
|
@ -44,7 +44,7 @@ export default {
|
|||
mounted() {
|
||||
this.event.on("Event.localEventIdReplaced", this.onLocalEventIdReplaced);
|
||||
},
|
||||
beforeDestroy() {
|
||||
beforeUnmount() {
|
||||
this.$audioPlayer.removeListener(this._uid);
|
||||
this.event.off("Event.localEventIdReplaced", this.onLocalEventIdReplaced);
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue