Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

128
Views
How to pass two ids for axios?

My toggle switch has a axios.put that has two ids. One id is returning correctly but the other id is returning as undefined. This is the result in console.log '/s/groups/61/network-groups/undefined' This is what I want to get '/s/groups/61/network-groups/289' What is the correct way to get the second 'id'? Thanks in advance!

methods{
  ...mapActions(['toggleDeliveryAction']),
        async toggleDeliveryAction( {gId, id})
        {
          let url = projConfig.apiRoot + `/s/groups/${id}/network-groups/${gId}`;
            console.log(url);
        }      
  }
<switcher
  :value="networkGroup.isActive"
  :disabled="loading"
  @input="(isChecked) => toggleRow(isChecked, group.id, networkGroup.name, {gId: networkGroup.id})"
  />

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!