Vue-redirect redirection failed, looking for a long time do not know the reason, ask for guidance

Vue rookie, when learning to use vue-router, in redirection, I found that it could not be realized. After referring to the example on the official website, I couldn"t find out what went wrong. I would like to ask the elders for advice. Thank you very much ~

.

the following is the code

var Home = {
        template: "<h3>Home</h3>"
      };
      var News = {
        template: "<h3>News</h3>"
      };
      var Travel = {
        template:"<h3>Travel</h3>"
      }

      //
      const router = new VueRouter({
        // routes,
        routes : [
          {path: "/home",component: Home},
          {path: "/news",component: News},
          {path:"/travel",component:Travel},
      //
          {path:"/home",redirect:"/travel"}
        ]
      })

      // vue
      new Vue({
        el: "-sharpapp",
        router,

      })
<div id="app">
    <div>
      <router-link to="/home">Home</router-link>
      <router-link to="/news">News</router-link>
      <router-link to="/travel">Travel</router-link>
    </div>
    <div>
      <router-view></router-view>
    </div>
  </div>
Mar.03,2021

Why there are two / home , if the route matches the first, it will not match the second.


delete {path:'/ home',component: Home}, .


Thank you for inviting me. The problem should be solved. Let's work together.

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-1e417df-662dc.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-1e417df-662dc.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?