1
0
Fork 0
5g-track/src/bus.js

10 lines
235 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import busVue from 'vue'
/**
* 在原型上挂载一个新的vue实例对象
* 用于储存公共值的同时借用vue的$emit/$on/$off实现数据监听
*/
export default function (vue){
vue.prototype.$bus = new busVue()
}