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