title: Vuejs - property 'id' of undefined when using router.push()
body: <p>Hi so I have a table where all my info is registered and one field has a button to consult each row . what I want is getting the id of each row and pass it in the router.push but doing so get's me the undefined error can anyone help me how to make this work?</p>
  <p>I use Ant Design Vue that's why I have a- elements,here's my file</p>
  <pre><code>&lt;a-table :data-source=&quot;dataSource&quot; :columns=&quot;columns&quot; :loading=&quot;loading&quot; rowKey=&quot;id&quot;&gt;
  // ive got more code here but this is the button code  :
  &lt;template #details&gt;
      &lt;span&gt;
        &lt;a-button
          @click=&quot;click(record)&quot;
          class=&quot;btn btn-sm btn-light mr-2&quot;
        &gt;
          Details
        &lt;/a-button&gt;
      &lt;/span&gt;
    &lt;/template&gt;
  &lt;/a-table&gt;
       &lt;script&gt;
        setup()      
   {const router = useRouter()
      const click = (record) =&gt; {
        router.push({ 
            name:'details' , params:{id:[record.id]},
          })
      }
     }
  </code></pre>
  <p>How can I really get the id to successfully pass it and open my new page?</p>