How to add routing jump to traversed li by vue

related codes

/ / Please paste the code text below (do not replace the code with pictures)
< ul class= "home_tab" >

  <li v-for="item in tabs">
    **<router-link :to="item.ur">**
      <div><img :src="item.icon" alt=""/></div>
      <span>{{item.name}}</span>
    **</router-link>**
  </li>
</ul>

this is an error message. I don"t know how to solve next is undefined?.

Dec.21,2021

: to needs a route, which can be a string or an object. Is the value of item.ur incorrect? (recommend, and hi, are my defined routes)

<template>
  <div id="app">
   
    <ul class="home_tab">
      <li v-for="(item,index) in tabs" :key=index>
        <router-link :to="item.ur">
          <div><img :src="item.icon" alt=""/></div>
          <span>{{item.name}}</span>
        </router-link>
      </li>
    </ul>
    <router-view></router-view>
  </div>
</template>

<script>

export default {
  name: 'App',
 
  data () {
    return {
      tabs: [{
        ur: 'recommend',
        name: 'recommend'
      }, {
        ur: 'hi',
        name: 'hi'
      }
      ]
    }
  }
}

//
export default new Router({
  routes: [{
    path: '/',
    redirect: '/recommend'
  }, {
    path: '/recommend',
    component: Recommend
  }, {
    path: '/hi',
    component: hi
  }]
})

it prompts you that your item.ur is not a string or object, but that you get undefined. Do you define item.url instead of item.ur? And then you wrote the wrong field name on your page?

Menu