licp
2024-04-26 b093914dbe7cf596aa6ea5a93748ce1354b4c900
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
  }
});