Crunchy
2024-04-25 91d4dbb579831da006e57643770e42d7dc184d05
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
  }
});