Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I would like to send the data by parameters directly and not the array

The console is returning the data like this:

enter image description here

would like it to be sent like this directly:

ID: 3 Descricao: Executando

Code: refresh () { this.$axios.get()

     this.$axios.get("/Operacional/GetRelatorio", {
      params: { 
        situacao: this.situacao
      }
     }).then(res => { 
        this.prazos = res.data
        this.$refs.chart1.updateSeries([{
            name: 'NO PRAZO',
            data: [this.prazos.noPrazo, this.prazos.emDia, this.prazos.atrasadas]
         }])
      })
question from:https://stackoverflow.com/questions/65617190/pass-data-through-get-parameters-without-array

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
51 views
Welcome To Ask or Share your Answers For Others

1 Answer

params: { id: your ID, Descricao: "Executando" }


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...