当前位置:网站首页>Error: unresolved variable $bus and "typeerror: cannot read property '$on' of undefined“

Error: unresolved variable $bus and "typeerror: cannot read property '$on' of undefined“

2022-06-22 12:12:00 Sweet potato has no flower

Errors are reported as follows :

 Insert picture description here
 Insert picture description here

reason

No installation vue-bus plug-in unit

resolvent

$ yarn add vue-bus
$ npm install vue-bus --save

stay main.js In file

import Vue from 'vue';
import VueBus from 'vue-bus';
 
Vue.use(VueBus);
原网站

版权声明
本文为[Sweet potato has no flower]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/173/202206221131349306.html