EventBus,$emit执行一次,$on却执行多次

方案1:用$off清除监听 方案2:如果是父子组件就用$emit,不要用EventBus
posted @ 2024-05-10 16:43  chicidol  阅读(15)  评论(0编辑  收藏  举报