|
|
@@ -112,14 +112,12 @@ const handleOpenRightDrawer = () => {
|
|
|
onMounted(() => {
|
|
|
// 只在组件挂载时注册事件监听器
|
|
|
uni.$once('open-ib', handleOpenIb)
|
|
|
- uni.$on('open-notice-drawer', handleOpenNoticeDrawer)
|
|
|
uni.$on('open-right-drawer', handleOpenRightDrawer)
|
|
|
})
|
|
|
|
|
|
onUnmounted(() => {
|
|
|
// 在组件销毁时移除事件监听器
|
|
|
uni.$off('open-ib', handleOpenIb)
|
|
|
- uni.$off('open-notice-drawer', handleOpenNoticeDrawer)
|
|
|
uni.$off('open-right-drawer', handleOpenRightDrawer)
|
|
|
})
|
|
|
|