add a axios post example

This commit is contained in:
Andreas Zweili 2021-03-20 15:08:22 +01:00
parent 3e3fd51981
commit d97a39cd0a
1 changed files with 4 additions and 0 deletions

View File

@ -69,6 +69,7 @@
</template> </template>
<script> <script>
import axios from 'axios';
export default { export default {
data () { data () {
return { return {
@ -103,6 +104,9 @@
terms: this.terms terms: this.terms
} }
console.log(formData) 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));
} }
} }
} }