Crunchy
2024-04-28 4144ff22e181b58124f1a4ab6484d49975ca2d1f
src/main.js
@@ -130,5 +130,9 @@
new Vue({
   el: '#app',
   router,
   render: h => h(App)
   render: h => h(App),
  beforeCreate() {
     // 需要在全局添加一个属性
    Vue.prototype.$bus = this
  }
});