链接:https://blog.csdn.net/GusLi/article/details/113267699

//index.vue页面
 created() {
    uni.$on("changeDorm",()=>{
      console.log("宿舍改变了")})
  },
//bind.vue页面
methods:{
    async formSubmit(e) {
          uni.$emit("changeDorm",{dorm:"1栋 B区楼3号房"})
        }
}

相关文章:

  • 2021-11-30
  • 2021-12-15
  • 2022-12-23
  • 2021-09-04
  • 2021-11-30
  • 2021-12-10
  • 2021-12-28
  • 2021-12-28
猜你喜欢
  • 2022-12-23
  • 2021-09-18
  • 2021-12-29
  • 2021-12-28
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案