当前位置:网站首页>bus event bus use
bus event bus use
2022-08-10 10:23:00 【extreme~】
- Route
1) Each interface of the route is fixed in the corresponding navigation bar: a bus event bus is added to the nav component
eventBus.js
import Vue from 'vue'export default new Vue()Introduced in navMain.vue
import eventBus from "@/utils/eventBus.js"created(){eventBus.$on("message", data => {console.log("A component passed to B component", data);this.toggleNav(data)});Other interfaces should be quoted
import eventBus from "@/utils/eventBus.js"let param = { id: 1, key: 'xxx', path:`/xxx`, name: 'xxx' }eventBus.$emit("message", param)边栏推荐
猜你喜欢

js猜拳小游戏源码

bus事件总线 使用

【Azure云】服务端点和私有链接有什么区别?观点(1)

Message Queuing Overview

The web project accesses static resources inside the reference jar

Excel draws statistical graphs

The Generation of Matlab Symbolic Functions and the Calculation of Its Function Values

腾讯云校园大使开始招募啦,内推名额和奖金等你来拿
![[Internet of Things Architecture] The most suitable open source database for the Internet of Things](/img/e9/10cf128dec3000daf7a3b2c816588f.jpg)
[Internet of Things Architecture] The most suitable open source database for the Internet of Things

文本选中圆角样式border-radius
随机推荐
阻塞队列与线程池原理
ZZULIOJ 1116 删除元素【删】
「数据战略」结果驱动的企业数据策略:组织和治理
Swin Transformer作者曹越加入智源,开展视觉基础模型研究
LiveGBS操作日志页面快速的筛选上级平台的调用记录直播观看录像回看等操作
PTA 7-2 Summation and Counting of Diagonal Elements of Square Matrices Solution
Behind iFLYTEK's translation machine stealing the spotlight, cross-language communication has entered a new era
Lasso回归(Stata)
"Data Architecture": How can master data management (MDM) help my industry?
Lasso regression (Stata)
dedecms supports one-click upload of Word content
LiveNVR操作日志页面快速筛选上级国标平台的调用记录直播观看录像回看等操作
【Software Exam System Architect】Case Analysis ⑥ Web Application System Architecture Design
2022.8.9-----leetcode.1413
对话陈赐靓:哪吒要让高端产品大众化
Dialogue with Chen Ciliang: Nezha wants to popularize high-end products
VBA: Inputbox Function and Inputbox Method
SQL中的字符串截取函数
js猜拳小游戏源码
[Microservice Architecture] Microservices and SOA Architecture (2)