Communication problems of sibling components of vue

the sibling component passes the value by registering the event bus, the same method, a passing b, or b passing a seems to be used only once? The other time there is no response and there will be no error, then the question is: if it is a sibling component, a changes a value of b, b also changes a value of a, what should I do?
paste the code
bus.js content:

import Vue from "vue"

export default new Vue;

split line--

bro1 component:
split line--

< template >
< div class= "bro1" >

  <h1>bro1</h1>
  <button @click="sendMsg">a</button>
  <h2>bro1msg,:{{msg}}</h2>

< / div >
< / template >

< script >
import bus from". / bus"
export default {
name: "bro1",
data () {

return {
  msg: "Welcome bro1111111"
}

},
methods: {

sendMsg(){
  bus.$emit("receiveMsg",this.msg)
}

},
mounted () {

bus.$on("changeAmsg",(msg)=>{
  this.msg=msg;
})

}
}
< / script >


< style scoped >

< / style >
split line--
bro2 component:
split line- -
< template >
< div class= "bro2" >

 <h1>bro2</h1>

bro1:{{msg}}

<button @click="sendAmsg">amsg</button>

< / div >
< / template >

< script >
import bus from". / bus"
export default {
name: "bro2",
data () {

return {
  msg: "Welcome bro2 "
}

},
mounted () {

bus.$on("receiveMsg",(data)=>{
  this.msg=data;
})

},
methods: {

sendAmsg(){
  bus.$emit("changeAmsg",this.msg)
}

}
}
< / script >


< style scoped >

< / style >

Mar.11,2021

ask questions and arrange the layout first.


Hello, I follow your two methods, the page can be rendered, but the console just refreshed the page Times error, what is the reason? can you take a look at it for me? there are specific pictures in my question

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b33604-2be99.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b33604-2be99.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?