What if the content of the vue-cli jump page component does not change?

I built two components in the conponent directory: a.vue b.vue
a.vue:
< template >
< div class= "a" >

{{ msg }}
<a href="/b">b.vue</a>

< / div >
< / template >
export default {
name: "asides,
data () {

return {
  msg: "Welcome to a.vue"
}

}
}

b.vue:
< template >
< div class= "hello" >

{{ msg }}
<a href="/">a.vue</a>

< / div >
< / template >

< script >

export default {
name: "baked,
data () {

return {
  msg: "Welcome to b.vue"
}

}
}
Route Settings:
import Vue from "vue"
import Router from" vue-router"
import a from"@ / components/a"
import b from"@ / components/b"

Vue.use (Router)

export default new Router ({
routes: [

{
  path: "/",
  name: "a",
  component: a
},
{
  path: "/b",
  name: "b",
  component: b
}

]
})

at first, you can jump to the page to switch content, but I don"t know why. No matter how you click the jump link, although the URL path has changed, the content displayed on the page always remains the same, but the content of a.vue is still displayed

.
Feb.18,2022

first of all, this is not vue-cli, can be regarded as vue-router, routing jump problem, you see what the path of your address bar is, whether it is your corresponding routing path.
in addition, the next time you preview your own questions, it is convenient for you to ask questions, and it is also convenient for others to read them. My eyes hurt when I look at them.

clipboard.png


you need to bind a click event to your a tag

is similar to

<a @click='click'> </a> 


 methods:{
    click () {
        this.$router.push({path:'/b'})
    }
}
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-1bf187c-31500.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-1bf187c-31500.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?