Skip to content

Commit 29bed9e

Browse files
committed
update: subnvue 相关事件销毁.
1 parent 26695c9 commit 29bed9e

3 files changed

Lines changed: 9 additions & 1 deletion

File tree

‎pages/API/subnvue/subnvue.vue‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@
5555
});
5656
})
5757
},
58+
onUnload() {
59+
uni.$off('popup-page')
60+
uni.$off('drawer-page')
61+
},
5862
onReady() {
5963
this.showVideo = true
6064
},

‎pages/API/subnvue/subnvue/popup.nvue‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@
3737
vm.content = data.content;
3838
})
3939
},
40+
beforeDestroy() {
41+
uni.$off('drawer-page')
42+
},
4043
methods: {
4144
sendMessage() {
4245
const subNVue = uni.getCurrentSubNVue()

‎pages/API/subnvue/subnvue/video-mask.nvue‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@
4545
}
4646
})
4747
},
48-
beforeDestory(){
48+
beforeDestroy(){
49+
uni.$off('play-video')
4950
this.closeItem()
5051
},
5152
methods: {

0 commit comments

Comments
 (0)