Crunchy
2024-04-26 28f355c8d4708aa64262aa9be3be5dc72c22b16e
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
  }
});