Vue.js error : Cannot read property '_parent' of undefined(…)
问题 i am trying to use Vue.js global event bus. Here is my code. I checked lots of examples which are working fine but when i try to use the same idea to code for my project it's showing this Error: Cannot read property '_parent' of undefined(…) var bus = new Vue() Vue.component('login', { template: "#login", data: function(){ return { ip:'', sessiontoken:'' } }, ready: function(){ this.settoken(); this.getip(); }, methods: { getencrypteduser:function(){ }, getauthentifications: function(event){