Questions tagged as 'axios'

1
answer

input reactivity with vuejs and axios

someone to help me with this? I want to keep the reactivity of the input and can use it to change the ident property in a reactive way for the query to the api. and probe with the hooks created and mounted, apart from separating it in called...
asked by 02.10.2018 / 06:49
1
answer

How to make a computed property with an axios call return a value

I have a property computed in the following way: private get ChangeGroup(): IResults[] { Axios.get(process.env.VUE_APP_BASE_URI + 'results?GroupNumber=' + this.selected, {withCredentials: true}) .then(data => { this....
asked by 29.06.2018 / 20:56
1
answer

Error editing an entity with a unique Laravel field

I have an entity activities with the following Form Request as indicated in the documentation public function rules() { return [ 'name' => "required|max:200|unique:activities,name,". $this->activity_id ]; } When editin...
asked by 24.11.2018 / 00:51
1
answer

adding an item to items by push before axios post does not send the item added

Good morning, thanks in advance for the help you could give me. I'm creating a page for issuing an invoice in laravel with vue and axios. Before sending the invoice to record, I must verify if the total value of the invoice makes you a winner, t...
asked by 21.07.2018 / 13:59
1
answer

Problem with axes vue and php: Undefined Index

I have a very simple code, I'm using PHP VueJs and axios for Ajax requests I have a button that sends data by ajax to a php file per post but it does not recognize post data, that I infer from this error:    Notice: Undefined index: email...
asked by 16.08.2018 / 08:01
0
answers

How to run the proxy included in the package.json for axios calls

I have a VUE application configured with a net.core application as backend To avoid cors problems, it would be ideal to configure a proxy. However my attempts were in vain, since I did not find a way to do it. The application is created wi...
asked by 17.08.2018 / 16:57
1
answer

Error "Access-Control-Allow-Origin is not allowed" with Vue.js

I try to make a request with Axios from a Vue component. The server collects it correctly, with a status code 200, but I have a problem with the answer. I get this error: Failed to load http: // ....: Request header field Access-Control-Allo...
asked by 11.09.2018 / 18:25
1
answer

Problem when returning data through $ emit

I have 2 components, the child component generates an issue to the parent component and after the function is executed in the parent component that returns the data to the child component, what I have done is the following: In the son compone...
asked by 23.08.2018 / 17:49
0
answers

get object with axios.get - APIREST

I'm filling a table in php using axios.get that I send to an api to collect data from the database, the problem is that, in the response.data is not returning an object, if not an array, which does not work to fill my table Correct example...
asked by 30.11.2018 / 19:46
0
answers

Fix error when consulting WebService, axios, javascript?

Good afternoon I have to make a query with the axios.get method, but it gives me the following message: { "Message": "No HTTP resource was found that matches the request URI 'https://URL/api/Metodo'." } I'm trying to solve it in the fol...
asked by 19.11.2018 / 22:30