vue报错 Error in mounted hook “TypeError Cannot read properties of undefined (reading ‘$on‘)“
vue错误打印vue.esm.jsa026:628 [Vue warn]: Error in mounted hook: “TypeError: Cannot read properties of undefined (reading ‘$on’)”解决方式: 在main.js加入代码// event Bus 用于无关系组件间的通信。Vue.prototype.$bus = new Vue()..
·
已为社区贡献2条内容
所有评论(0)