摘要: 在组件1中调用组件2中的方法 组件1: this.$eventbus.$emit("change_event", "参数") 组件2: mounted () { this.$eventbus.$on('change_event', (参数) => { // 需要调用的方法 this.init() } 阅读全文
posted @ 2023-02-10 11:02 三水儿 阅读(18) 评论(0) 推荐(0) 编辑