add a axios post example
This commit is contained in:
parent
3e3fd51981
commit
d97a39cd0a
|
@ -69,6 +69,7 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import axios from 'axios';
|
||||
export default {
|
||||
data () {
|
||||
return {
|
||||
|
@ -103,6 +104,9 @@
|
|||
terms: this.terms
|
||||
}
|
||||
console.log(formData)
|
||||
axios.post("https://axios-test-44b62-default-rtdb.europe-west1.firebasedatabase.app/users.json", formData)
|
||||
.then(response => console.log(response))
|
||||
.catch(error => console.log(error));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Reference in New Issue